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.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to