Any Bash features you'd like to see?

Peter plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Thu May 12 04:45:16 UTC 2005



On Wed, 11 May 2005, William Park wrote:

>> Oh, that's a good one. One thing that I would really like is to have
>> .bash_history log commands from *all* open shells for a given user. I
>> often have 4-8 shells open and the history does not reflect what I was
>> doing in all of them. The easiest way would be for bash to stat and
>> count the links to bash_history on startup. If >1 open another
>> bash_history and write to it instead.
>
> I guess you could use '.bash_history.pid' instead of just
> '.bash_history'.  Mind you, .bash_history is only written on exit.  So,

Ok, so what I said would not work.

> what's wrong with using shell's internal history buffer?

Nothing, but the last shell to exit overwrites anything the previous 
ones wrote, so you have only one log. .bash_history.pid is a 
possible solution.

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list