source:
vendor/bash/3.1/tests/exec5.sub@
3253
| Last change on this file since 3253 was 3228, checked in by , 19 years ago | |
|---|---|
| File size: 252 bytes | |
| Rev | Line | |
|---|---|---|
| [3228] | 1 | # try exec'ing a command that cannot be found in $PATH |
| 2 | shopt -s execfail | |
| 3 | ||
| 4 | exec bash-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' |
Note:
See TracBrowser
for help on using the repository browser.
