bug-bash
[Top][All Lists]
Advanced

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

Re: feature-request: don't count history time comment lines when in HIST


From: Chet Ramey
Subject: Re: feature-request: don't count history time comment lines when in HISTFILESIZE
Date: Wed, 25 Mar 2015 14:48:47 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 3/25/15 2:07 PM, Christoph Anton Mitterer wrote:
> Hey.
> 
> When HISTTIMEFORMAT is used the history time comment lines are written
> to HISTFILE.
> Therefore, HISTFILESIZE is effectively only half as large.
> 
> Would it be possible to simply not count the history time comment lines
> when enforcing HISTFILESIZE?

The history file truncation code already skips lines that look like history
timestamps.  Look at history.c:history_truncate_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/



reply via email to

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