Re: set -e not ignored in AND-OR list
Herbert Xu <[email protected]> Sun, 10 Nov 2024 12:11:13 +0800
| Newsgroups | org.kernel.vger.dash |
|---|---|
| Message-ID | <[email protected]> |
Christoph Anton Mitterer <[email protected]> wrote: > > $ $(foo) || true > a This is simply undefined behaviour. Some shells will ignore set -e within the command substitution subshell as a result of the ||, some won't. Dash does the latter. Cheers, -- Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt