Rusty Bird <rustyb...@net-c.com> writes: >> The behavior of set -e is extremely surprising [...]
> Has it ever been considered to add something like 'shopt -s > composable_compound'? Roughly meaning "execution and exit status of a > compound command are not changed by surrounding context (in the sense > of logical operators, or being the condition of an if statement etc.)" > > That, together with 'set -e -o pipefail; shopt -s inherit_errexit' > seems like it would go a long way towards easier error handling. Better than figuring out how to create a modification of "-e", it's probably better to design "easier error handling" from scratch, and define an entirely new option to activate it. Dale