summaryrefslogtreecommitdiff
path: root/tests/execscript
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-11-21 20:51:19 -0500
committerChet Ramey <chet.ramey@case.edu>2011-11-21 20:51:19 -0500
commit0001803f0b9523c94fa2ede48eaecb047fef4524 (patch)
treef334332811e033ff966d94f6268f0629a94304b3 /tests/execscript
parent89a92869e56aba4e4cab2d639c00a86f0545c862 (diff)
downloadbash-0001803f0b9523c94fa2ede48eaecb047fef4524.tar.gz
Bash-4.1 distribution source
Diffstat (limited to 'tests/execscript')
-rw-r--r--tests/execscript2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/execscript b/tests/execscript
index 5e11e235..3629c57a 100644
--- a/tests/execscript
+++ b/tests/execscript
@@ -48,6 +48,8 @@ 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
+# bash-4.1 and later check for 256 NUL characters and fail as binary files
+# if there are more than that, it's probably binary
. ${THIS_SH} 2>/dev/null
echo $?