Files
bash/bash-20060316/tests/exec5.sub
T
2011-12-07 09:05:27 -05:00

10 lines
252 B
Plaintext

# 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'