summaryrefslogtreecommitdiffhomepage
path: root/tests/linux/i-exec-fail.exp
blob: 0dd7a1333df34f3f6c28ede81cfc01b1e2ca60c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
$ 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]