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: Graham Jones
Subject: Re: PROMPT_COMMAND='history -a; history -n' causes shell hang in OX 10.10 Yosemite / bash 3.2.53
Date: Wed, 5 Nov 2014 08:19:15 +1100

> On 5 Nov 2014, at 4:49 am, Piotr Grzybowski <address@hidden> wrote:
> 
> Hi,
> 
> reproducible on mac os x 10.6.8
Really? Very interesting.
I assume that it’s not reproducible with the version of bash that ships with 
10.6.8 however?

> This is free software; you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> 
> Graham: could you please send the output of these commands:
> 
> # cat .bash_history | wc -l
> # echo $HISTFILESIZE
> # echo $HISTSIZE
> 
> it obviously happens when you are almost at the level of
> $HISTFILESIZE with `cat .bash_history | wc -l`.
Not at all.  I keep my history for a long time and have an arbitrarily large 
HISTSIZE. However, after the recent Yosemite upgrade, histories were truncated, 
so it’s relatively empty and nowhere near the level of HISTFILESIZE after the 
20 or so returns that I enter reproduce it (and I’m not sure that just hitting 
enter even puts anything in the history).

Here are the details you wanted:
address@hidden:~$ set | grep HIST
HISTFILE=/Users/graham/.bash_history
HISTFILESIZE=500000
HISTSIZE=500000
address@hidden:~$ wc -l $HISTFILE
      21 /Users/graham/.bash_history


> 
> 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]