$ exec /nonexistent/cmd SHELL: /nonexistent/cmd: not found $ echo "rc=$?" rc=127 $ exec /nonexistent/cmd > out.txt SHELL: /nonexistent/cmd: not found $ echo after after $ wc -c < out.txt 0 $ exit [status 0]