You're missing `errtrace` (-E) which means "any trap on ERR is inherited by shell functions, command substitutions, and commands executed in a subshell environment"
You probably haven't used it much if you haven't been using `trap`
You probably haven't used it much if you haven't been using `trap`
trap EXIT
With set -eu
errors in subshells should lead to an exit anyway, so my exit handler is called. Or am I missing some case?So I'm sticking with just set -eu and trap EXIT...