bug-bash
[Top][All Lists]
Advanced

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

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


From: Ewan Mellor
Subject: RE: set -e, bad substitutions, and trap EXIT
Date: Mon, 13 Feb 2012 23:02:48 +0000

> -----Original Message-----
> From: Chet Ramey [mailto:chet.ramey@case.edu]
> Sent: Monday, February 13, 2012 5:05 AM
> To: Ewan Mellor
> Cc: Renuka Apte; bug-bash@gnu.org; chet.ramey@case.edu
> Subject: Re: set -e, bad substitutions, and trap EXIT
> 
> 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.

That's perfect.  Thanks for your help, Chet.

Cheers,

Ewan.




reply via email to

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