Re: Sharing bash history [was Re: Horrible X11 Problems on OS X (iBook)]
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