fish-shell/tests/test_exec_fail.in

7 lines
138 B
Fish
Raw Normal View History

exec cat < nosuchfile
echo "failed: $status"
not exec cat < nosuchfile
echo "neg failed: $status"
exec cat < /dev/null
echo "not reached"