Re: set -e not ignored in AND-OR list
Herbert Xu <[email protected]> Sun, 10 Nov 2024 14:19:06 +0800
| Newsgroups | org.kernel.vger.dash |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt