set -e in subshells