Re: [bash-bug] no local bash_history created or written to if existing (
From:
Chet Ramey
Subject:
Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history
Date:
Tue, 08 Mar 2011 21:40:26 -0500
User-agent:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7
On 3/8/11 11:12 AM, Chet Ramey wrote:
> I might be able to finesse this particular case based on the state that
> readline exports to the calling application.
I think I was able to do that. Try the attached patch; it works for me.
It identifies a single specific common case and allows the history to be
saved in that case. I think that case minimizes the chances of deadlock,
but it requires much more testing before I will be convinced. Please help
me out by testing it.
Yes, I know that it's not 100% safe and will run unsafe functions from a
signal handler. I will devise a better fix for later, but that will
require changes to readline (so it can catch SIGHUP) that will have to
wait.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/