summaryrefslogtreecommitdiff
path: root/tests/exec5.sub
blob: 1462f9e5d346cf1fd1ee8ec33c238ac9a8666ba2 (plain)
1
2
3
4
5
6
7
8
9
# try exec'ing a command that cannot be found in $PATH
shopt -s execfail

exec bash-notthere
# make sure we're still around
echo $?

# now we need to go away, but this should echo 'this is ohio-state'
exec -a ohio-state ${THIS_SH} -c 'echo this is $0'