• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sharing bash history [was Re: Horrible X11 Problems on OS X (iBook)]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sharing bash history [was Re: Horrible X11 Problems on OS X (iBook)]


  • Subject: Re: Sharing bash history [was Re: Horrible X11 Problems on OS X (iBook)]
  • From: Viv Kendon <email@hidden>
  • Date: Wed, 22 Dec 2004 21:08:07 +0000 (GMT)

On Wed, 22 Dec 2004, Don MacQueen wrote:

At 3:41 PM +0000 12/22/04, Noah Slater wrote:

I was having loads of problems getting X11 to work as well. It all came down to configuration and startup scripts.

If your xterm is using a default Bash shell and so is Terminal.app
they will of course share the same history as this information is
located in ~/.bash_history

Are you sure?? If you open two separate shells in Terminal.app, do they share history?

Not exactly...when you start an interactive bash shell in xterm or Terminal or whatever, it reads in the .bash_history file and continues to add to the copy it keeps in memory. When the shell exits it writes the file back to disk, overwriting whatever was there. So what you have in your history file depends on which shell you last quit from...


As one who usually has at least half a dozen xterms around at any one time, plus a couple of Terminal windows, I do
occasionally find this bizzare or annoying, but I can't think of a better way to do it...


-- Viv
------------------------------------------------
Dr Viv Kendon               email@hidden
Quantum Information           tel: 0113 343 3897
Physics & Astronomy          University of Leeds
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
This email sent to email@hidden


  • Follow-Ups:
    • Re: Sharing bash history [was Re: Horrible X11 Problems on OS X (iBook)]
      • From: robert delius royar <email@hidden>
References: 
 >Re: Horrible X11 Problems on OS X (iBook) (From: Martin Costabel <email@hidden>)
 >Re: Horrible X11 Problems on OS X (iBook) (From: Stephen Sebeny <email@hidden>)
 >Re: Horrible X11 Problems on OS X (iBook) (From: Noah Slater <email@hidden>)
 >Sharing bash history [was Re: Horrible X11 Problems on OS X (iBook)] (From: Don MacQueen <email@hidden>)

  • Prev by Date: Sharing bash history [was Re: Horrible X11 Problems on OS X (iBook)]
  • Next by Date: Re: Sharing bash history [was Re: Horrible X11 Problems on OS X (iBook)]
  • Previous by thread: Sharing bash history [was Re: Horrible X11 Problems on OS X (iBook)]
  • Next by thread: Re: Sharing bash history [was Re: Horrible X11 Problems on OS X (iBook)]
  • Index(es):
    • Date
    • Thread