bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Append history from each shell upon exiting GNU Screen


From: Roger
Subject: Re: Append history from each shell upon exiting GNU Screen
Date: Mon, 12 Sep 2011 06:19:50 -0800
User-agent: Mutt/1.5.21 (2010-09-15)

> On Mon, Sep 12, 2011 at 08:36:07AM -0400, Greg Wooledge wrote:
>On Sun, Sep 11, 2011 at 11:23:48PM -0800, Roger wrote:
>> When using GNU Screen (or other terminal multiplexer), I noticed the terminal
>> multiplexer never gives each bash shell opened, a chance to write the history
>> file on exit.
>> 
>> The usual result after an initial install for several months, the history 
>> file will
>> remain practically empty.
>
>That's got nothing to do with screen.  Any long-lived terminal will
>have the same behavior.  If you want to write to the history file, you
>can do so at any time:
>
>$ help history
>...
>      -a        append history lines from this session to the history file

However, on regular bash exit or logout, isn't history synced (or appended) at
that time automatically?

-- 
Roger
http://rogerx.freeshell.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]