bug-bash
[Top][All Lists]
Advanced

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

Re: (set -u -e; trap true EXIT; echo $bad) exits 0


From: Chet Ramey
Subject: Re: (set -u -e; trap true EXIT; echo $bad) exits 0
Date: Thu, 21 May 2009 22:04:44 -0400
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

Piotr Zielinski wrote:

>> Thanks for the report.  The problem is that bash doesn't always set
>> $? before testing whether or not the shell should exit because -e has
>> been set and an unset variable is being expanded.
> 
> Thanks for the reply.  Does it mean it is a bug or a feature?

It's a bug.  It will be fixed in the next release.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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