]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/execscript
Imported from ../bash-2.05.tar.gz.
[thirdparty/bash.git] / tests / execscript
index ed38c8ee2f5dfcecfe3d6d6112e8d6347da99661..749b733fa0ccb97c8970284860e3c924b0cd9a71 100644 (file)
@@ -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 $?
 
@@ -82,3 +84,8 @@ ${THIS_SH} ./exec5.sub
 
 # this was a bug in bash versions before bash-2.04
 ${THIS_SH} -c 'cat </dev/null | cat >/dev/null' >&-
+
+# checks for proper return values in subshell commands with inverted return
+# values
+
+${THIS_SH} ./exec6.sub