[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    Re: history-size reported as "0" even is value is "-1"
From:       Chet Ramey <chet.ramey () case ! edu>
Date:       2023-07-17 20:31:17
Message-ID: 51e3b187-438e-c1ec-719c-dbbf6f83526c () case ! edu
[Download RAW message or body]

On 7/16/23 7:28 AM, Sebastian Carlos wrote:
> Hello,
> 
> history-size is documented as follows:
>> If set to a value less than zero, the number of history entries is not
> limited.
> 
> But after setting it to "-1", for example with this line in .inputrc:
>> set history-size -1
> 
> It is still reported as "0" in "bind -v":
>> set history-size 0

Thanks for the report. The right thing happens either way, but readline
should report the value as < 0 so the output of `bind -v' can be reused
as input.

Chet

-- 
``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/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic