[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Default time for unmarked history lines
From: |
Chet Ramey |
Subject: |
Re: Default time for unmarked history lines |
Date: |
Mon, 11 Jan 2016 09:25:05 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 1/7/16 11:21 PM, Eduardo A. Bustamante López wrote:
> BTW, the timestamp = 0 thing is a bug in readline. Since it uses (time_t) 0 as
> a return value for errors in history_get_time, and later there's code similar
> to this:
>
> t = history_get_time(...)
> if(t)
> strftime(...)
> else
> strcat(..., "??")
>
> It considers 0 as an invalid value.
It's not a bug; it's a distinguished value the history library won't write.
All bets are off if you manually change the history file.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/