[Top][All Lists]

[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 22:40:45 +0100

Hi Graham,

On Tue, Nov 4, 2014 at 10:19 PM, Graham Jones
<your-name-here@grahamjones.org> wrote:
> Really? Very interesting.
> I assume that it’s not reproducible with the version of bash that ships with
> 10.6.8 however?

 not exactly the version shipped with 10.6.8, more like installed by hand:

# which bash

> 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).

 well, thats strange, but it means that this also should do the trick,
without setting PROMPT_COMMAND:

# i=0; while [ $i -lt 25 ]; do history -a; history -n; let i++; done;

it actually does for me, anything above 24 in the upper limit of the
above loop triggers the issue (no PROMPT_COMMAND set anywhere).
 at the same time, the same loop does nothing out of the ordinary on
linux/i386 with bash--version:
#bash --version
GNU bash, version 4.3.30(1)-release (i686-pc-linux-gnu)

> Here are the details you wanted: [..]

thanks, nice HISTSIZE btw ;-)


reply via email to

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