1set -e
2trap 'echo $?' EXIT
3echo ${$NO_SUCH_VAR}    # Bad substitution expected here
4