[Top][All Lists]

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

Re: Append history from each shell upon exiting GNU Screen

From: Michael Witten
Subject: Re: Append history from each shell upon exiting GNU Screen
Date: Mon, 12 Sep 2011 21:59:38 +0000

On Mon, Sep 12, 2011 at 14:19, Roger <address@hidden> wrote:
>> 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?

The real question: Why aren't your bash processes automatically
writing something to the history file?

Mine certainly do, even when using screen, as I have bash configured to do so.

reply via email to

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