bug-bash
[Top][All Lists]
Advanced

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

Re: set -e in (subshells) does not work independently of outer context


From: Linda Walsh
Subject: Re: set -e in (subshells) does not work independently of outer context
Date: Mon, 30 Jan 2012 13:27:58 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666



Chet Ramey wrote:

As Eric said, the other parts of the Posix description make it clear that
the `ignoring set -e' status is inherited by subshells.

----
        The original POSIX standard made this clear -- in that
it was only a failure of a 'simple' command that resulted' in
an err-exit'.

Since a subshell is not a 'simple command', it would not qualify
just like ((n=0)) isn't a simple command, so shouldn't trigger an
error exit...(but has in some recent versions)....

Is that fixed in bash  now?







reply via email to

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