help-bash
[Top][All Lists]
Advanced

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

Re: Two documentation nits regarding multiline history files


From: Chet Ramey
Subject: Re: Two documentation nits regarding multiline history files
Date: Mon, 7 Apr 2025 16:36:36 -0400
User-agent: Mozilla Thunderbird

On 4/4/25 5:00 PM, Jens Schmidt wrote:

- The manual says w.r.t. HISTFILESIZE:

     HISTFILESIZE
       The maximum number of lines contained in the history file.  When
       this  variable  is  assigned  a value, the history file is trun‐
       cated, if necessary, to contain no  more  than  that  number  of
       lines  by removing the oldest entries.

   Which is IMO not true for multiline history files:
   + truncation does not count the timestamp lines against the limit
   + truncation, at least on the devel branch, rounds up the number
     of lines so that the truncated history starts with a timestamp
     line (thanks for fixing this)

I think this can be clarified by simply stating that the history file is
truncated to $HISTFILESIZE history entries.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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