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: Greg Wooledge
Subject: Re: PROMPT_COMMAND='history -a; history -n' causes shell hang in OX 10.10 Yosemite / bash 3.2.53
Date: Thu, 6 Nov 2014 08:10:50 -0500
User-agent: Mutt/1.4.2.3i

On Thu, Nov 06, 2014 at 11:19:55AM +0100, Piotr Grzybowski wrote:
>  would you accept a solution like this:
> 
> 1. all running instances of bash with history support on, share
> history via shmem segment (some care as to its size should be taken)
> ...

As long as it is off by default.  This is the worst feature of ksh,
and one of the primary reasons I switched from ksh to bash.

Doing ESC k ENTER in ksh with an account to which multiple human beings
have shared access (like root) is playing Russian roulette.  You never
know what you're going to end up executing.  It's truly, truly terrible.

(And yes, there are systems where root's default shell is ksh.  AIX is
one of them, or at least it was, back in 1993-1995 when I worked with
it extensively.)



reply via email to

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