Re: set -e not ignored in AND-OR list

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

 



On Sun, Nov 10, 2024 at 07:08:10AM +0100, Christoph Anton Mitterer wrote:
> On Sun, 2024-11-10 at 12:11 +0800, Herbert Xu wrote:
> > This is simply undefined behaviour.
> 
> Are you sure that this is undefined? Cause:
> 
> > The -e setting shall be ignored when executing the compound list
> > following the while, until, if, or elif reserved word, a pipeline
> > beginning with the ! reserved word, or any command of an AND-OR list
> > other than the last.
> 
> ... seems to define just that.
> 
> Or do you know of any part in the standard that allows an exception
> from this?

This is a command substitution subshell which is not governed by
what you just quoted.

Cheers,
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux