Re: history -a misbehaves with $HISTSIZE

2019-03-01 Thread Chet Ramey
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 to

Re: history -a misbehaves with $HISTSIZE

2019-02-23 Thread Chet Ramey
On 2/13/19 3:47 PM, Айрат Васбикарамов wrote: Sorry it took a while to respond; this message ended up in my spam folder for some reason. > Thanks for clarification. But I still consider this behavior inconsistent. > > 1)  Why we need to check that history_lines_this_session is less than > histo

Re: history -a misbehaves with $HISTSIZE

2019-02-12 Thread Chet Ramey
On 2/10/19 4:59 PM, Айрат Васбикарамов wrote: > Machine Type: x86_64-unknown-linux-gnu > Bash Version: 4.4 > Patch Level: 23 > Release Status: release > Description: > $ history -c > $ HISTSIZE=2 > $ HISTFILE=$(mktemp) > $ history -a > $ cat $HISTFILE > $ > File is still empty! > bashhist.c:maybe_

Re: history -a

2010-08-14 Thread Bruce Korb
Thanks, Chet. I'll try the patch out as soon as I can get to it. Meanwhile, I've also tried to add in some of the examples/loadables (beyond the "tty" one), and it makes bash unstable. I will also try to put together a patch that will run through the examples directory on "make check". I am pret

Re: history -a

2010-08-13 Thread Chet Ramey
On 8/9/10 2:07 PM, Bruce Korb wrote: > My history file isn't being updated as I am led to believe it ought to be. > Is there some shopt or other thingey that keeps the history unwritten? > I've googled the issue and the answer is supposed to be "history -a", > on occasion, but that isn't working: