[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set -e, bad substitutions, and trap EXIT

From: Chet Ramey
Subject: Re: set -e, bad substitutions, and trap EXIT
Date: Mon, 13 Feb 2012 08:04:58 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 2/13/12 4:43 AM, Ewan Mellor wrote:

>> Yes, it's a bug.  When -e is in effect, the exit status is not set
>> before the shell exits.  When it isn't, the code path taken results in
>> the correct exit status.
>> Here's a patch that solves this particular problem.
> Thanks Chet.  What happens next?  I'm not a bash developer normally, so I 
> don't know what the procedure is.  Is that something that you can submit for 
> me, or do you need me to file a bug somewhere?

The bug will be fixed in the next version of bash.  It may be released as a
patch to bash-4.2.  I posted the patch in the event that folks wanted to
patch their local builds.

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