help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Adding a marker line to history at interactive shell sta


From: Chet Ramey
Subject: Re: [Help-bash] Adding a marker line to history at interactive shell start (and history timestamps)
Date: Tue, 26 Jun 2012 15:36:17 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120601 Thunderbird/13.0

On 6/26/12 2:56 PM, Chet Ramey wrote:

> I can reproduce this using bash-3.2.51; I get all the lines except the
> last commented one when I type `history' at the command line. I'll have to
> look into it, but I will be very surprised if the comment character, since
> it's the same as the history comment character, is not causing the line to
> be mistaken for a timestamp.  That check was tightened up between bash-3.2
> and bash-4.0.

And that's the case.  The line is never being passed to add_history because
the history file reading code thinks it's a timestamp.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/





reply via email to

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