1
0
Fork 0
bash/tests/exec5.sub
Daniel Baumann fa1b3d3922
Adding upstream version 5.2.37.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 06:49:21 +02:00

9 lines
252 B
Text

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