[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bash-bug] no local bash_history created or written to if existing (
From: |
Dr. Werner Fink |
Subject: |
Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history |
Date: |
Wed, 9 Mar 2011 12:14:24 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Mar 08, 2011 at 09:40:26PM -0500, Chet Ramey wrote:
> 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.
The patch does its work, thanks a lot.
> 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.
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
- Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history, (continued)
- Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history, Chet Ramey, 2011/03/08
- Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history, Dr. Werner Fink, 2011/03/08
- Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history, Chet Ramey, 2011/03/08
- Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history, Roman Rakus, 2011/03/08
- Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history, Micah Cowan, 2011/03/08
- Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history, Dr. Werner Fink, 2011/03/08
- Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history, Andreas Schwab, 2011/03/08
- Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history, Eric Blake, 2011/03/08
- Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history, Chet Ramey, 2011/03/08
- Message not available
- Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history, Chet Ramey, 2011/03/08
- Re: [bash-bug] no local bash_history created or written to if existing (~/.bash_history,
Dr. Werner Fink <=