X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Fexecscript;h=749b733fa0ccb97c8970284860e3c924b0cd9a71;hb=28ef6c316f1aff914bb95ac09787a3c83c1815fd;hp=0a13d72fa4081af17ccd135977e4758e677f87aa;hpb=cce855bc5b117cb7ae70064131120687bc69fac0;p=platform%2Fupstream%2Fbash.git diff --git a/tests/execscript b/tests/execscript index 0a13d72..749b733 100644 --- a/tests/execscript +++ b/tests/execscript @@ -35,6 +35,8 @@ echo $? . / echo $? +# try sourcing a binary file -- post-2.04 versions don't do the binary file +# check, and will probably fail with `command not found', or status 127 . ${THIS_SH} 2>/dev/null echo $? @@ -79,3 +81,11 @@ ${THIS_SH} ./exec4.sub # try exec'ing a command that cannot be found in $PATH ${THIS_SH} ./exec5.sub + +# this was a bug in bash versions before bash-2.04 +${THIS_SH} -c 'cat /dev/null' >&- + +# checks for proper return values in subshell commands with inverted return +# values + +${THIS_SH} ./exec6.sub