On Thu, 11 Dec 2008, Carlos E. R. wrote:-
I /think/ the history is saved only when you exit bash. Till that moment, the current history is in memory only, and the file holds the previous session data.
It is kept in memory, unless you use "history -a" command to flush the in-memory history out to .bash_history[0]. By using "history -a" in once console, you can "import" the commands allows the used in that console into a previously opened console by using "history -n".
What happens when you have many bash sessions opened, I do not know.
When you close them, each consoles history is written to .bash_history and the oldest lines that go beyond the limit are lost. [0] And can be very useful if you paste something into the wrong console which would fill up your .bash_history with useless stuff. Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s SUSE 10.1 32 | | openSUSE 10.3 32b | openSUSE 11.0 32b | openSUSE 10.2 64b | openSUSE 10.3 64b | openSUSE 11.0 64b RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.11 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org