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 seems to prevent set -e from being effective
inside the subshell.

Is this a bug or does it make sense in a way I don't understand?

Thanks,
Aron

Reply via email to