repo.or.cz
/
bush.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
init version.
[bush.git]
/
tests.bak
/
exec5.sub
blob
d867c5641ea2b38e75cf25b08efdd4e8d80247de
1
# try exec'ing a command that cannot be found in $PATH
2
shopt -s execfail
3
4
exec bush-notthere
5
# make sure we're still around
6
echo $?
7
8
# now we need to go away, but this should echo 'this is ohio-state'
9
exec -a ohio-state ${THIS_SH} -c 'echo this is $0'