diff options
author | Jari Aalto <jari.aalto@cante.net> | 1998-04-17 19:52:44 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:51 +0000 |
commit | cce855bc5b117cb7ae70064131120687bc69fac0 (patch) | |
tree | 39c7a4ec8f6d22ef03df74f2684e6a04fef10399 /tests/execscript | |
parent | e8ce775db824de329b81293b4e5d8fbd65624528 (diff) | |
download | bash-cce855bc5b117cb7ae70064131120687bc69fac0.tar.gz |
Imported from ../bash-2.02.tar.gz.
Diffstat (limited to 'tests/execscript')
-rw-r--r-- | tests/execscript | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/tests/execscript b/tests/execscript index 49c4c337..0a13d72f 100644 --- a/tests/execscript +++ b/tests/execscript @@ -2,12 +2,12 @@ export LC_ALL=C export LANG=C set -- one two three -echo before execscript.sub: "$@" -echo calling execscript.sub -./execscript.sub aa bb cc dd ee -echo after execscript.sub with args: $? -./execscript.sub -echo after execscript.sub without args: $? +echo before exec1.sub: "$@" +echo calling exec1.sub +./exec1.sub aa bb cc dd ee +echo after exec1.sub with args: $? +./exec1.sub +echo after exec1.sub without args: $? # set up a fixed path so we know notthere will not be found PATH=/usr/bin:/bin:/usr/local/bin: @@ -44,7 +44,7 @@ echo $? # kill two birds with one test -- test out the BASH_ENV code echo echo this is bashenv > /tmp/bashenv export BASH_ENV=/tmp/bashenv -${THIS_SH} ./execscript.sub3 +${THIS_SH} ./exec3.sub rm -f /tmp/bashenv unset BASH_ENV @@ -72,7 +72,10 @@ echo ${PATH-unset} echo "echo ok" | ${THIS_SH} -t -${THIS_SH} ./execscript.sub2 +${THIS_SH} ./exec2.sub echo $? -${THIS_SH} ./execscript.sub4 +${THIS_SH} ./exec4.sub + +# try exec'ing a command that cannot be found in $PATH +${THIS_SH} ./exec5.sub |