[Top][All Lists]

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

Re[2]: history -a misbehaves with $HISTSIZE

From: Айрат Васбикарамов
Subject: Re[2]: history -a misbehaves with $HISTSIZE
Date: Wed, 06 Mar 2019 23:48:33 +0300

> It's in the devel branch. Try it and see if it does what you want.

Yes, it does. Thanks!

>Пятница,  1 марта 2019, 19:44 +03:00 от Chet Ramey <address@hidden>:
>On 2/28/19 5:53 PM, Айрат Васбикарамов wrote:
>>> It seems like what you want is min(history_lines_this_session, 
>>> history_offset),
>>> kind of like what you say below. Try the attached patch and see if it
>>> does what you want.
>> Yes, that's what I mean.
>>> I don't think this would happen too much in practice, though, because if
>>> you wait until you have more than $HISTSIZE history entries, you'll lose
>>> information no matter what you use.
>> I don't think that happens frequent either. But it's possible. Someone set 
>> HISTSIZE to 1000 as he don't care about too old commands and it's happened 
>> that he typed more than 1000 command. Then he run "history -a" to 
>> synchronize current history with another started bash for example. And lost 
>> recent commands. Possibly he notice it. But may not.
>> Anyway I don't see downsides of this behavior comparing to current. And it 
>> seems more intuitive to me. So should it be default?
>It's in the devel branch. Try it and see if it does what you want.
>``The lyf so short, the craft so long to lerne.'' - Chaucer
>``Ars longa, vita brevis'' - Hippocrates
>Chet Ramey, UTech, CWRU  address@hidden http://tiswww.cwru.edu/~chet/

Airat Vasbikaramov

reply via email to

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