you instruct the subshell to set -e, ..
On Fri, Nov 13, 2020, 17:16 Aron Griffis wrote:
> GNU bash, version 5.0.17(1)-release (x86_64-redhat-linux-gnu)
>
> $ (set -e; false; echo BANG) || echo whimper
> BANG
>
> $ (set -e; false; echo BANG); echo whimper
> whimper
>
> The || after the subshell s
On Fri, Nov 13, 2020 at 11:31 AM Chet Ramey wrote:
> `set -e' doesn't have any effect on the LHS of an and-or list, and enabling
> it has no effect. There have been many discussions about this.
>
Thanks Chet. I knew about this generally, but somehow thought subshell
would be exempt. I will adjus
On 11/13/20 11:15 AM, Aron Griffis wrote:
> GNU bash, version 5.0.17(1)-release (x86_64-redhat-linux-gnu)
>
> $ (set -e; false; echo BANG) || echo whimper
> BANG
`set -e' doesn't have any effect on the LHS of an and-or list, and enabling
it has no effect. There have been many discussions about th