bug-bash
[Top][All Lists]
Advanced

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

Re: PROMPT_COMMAND='history -a; history -n' causes shell hang in OX 10.1


From: Piotr Grzybowski
Subject: Re: PROMPT_COMMAND='history -a; history -n' causes shell hang in OX 10.10 Yosemite / bash 3.2.53
Date: Tue, 4 Nov 2014 23:16:48 +0100

 Chet: for reasons unexplained calls to read_history_range at

history.def:219
219           result = read_history_range (filename, history_lines_in_file, -1);

return more and more records (77824 is above my HISTFILESIZE):

1: history_lines_in_file = 77824

the loop at histfile.c:269 in read_history_range is the one that hangs.
 code at
commit ca6a2ba40c709c2b45a56e49d21d0dfc66e21974
Date:   Sun Oct 5 19:12:20 2014 -0400

cheers,
pg


On Tue, Nov 4, 2014 at 2:54 PM, Chet Ramey <address@hidden> wrote:
> On 11/3/14 5:08 PM, Graham Jones wrote:
>> These are for:
>> bash --version
>> GNU bash, version 4.3.30(1)-release (x86_64-apple-darwin14.0.0)
>
> This trace looks pretty reasonable.  Maybe you could temporarily move your
> history file to some other name and see if you can reproduce this behavior
> starting fresh with an empty history file.
>
> Chet
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/
>



reply via email to

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