> -----Original Message----- > From: Chet Ramey [mailto:chet.ra...@case.edu] > Sent: Monday, February 13, 2012 5:05 AM > To: Ewan Mellor > Cc: Renuka Apte; bug-bash@gnu.org; chet.ra...@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.