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