summaryrefslogtreecommitdiff
path: root/tests/exec12.sub
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2018-11-23 15:32:57 -0500
committerChet Ramey <chet.ramey@case.edu>2018-11-23 15:32:57 -0500
commit2ae59c1134a75d5778997b7202b15b0586283042 (patch)
tree6a0fa496d41b222f5f69e3640d84932fb7a84778 /tests/exec12.sub
parent2f5dfe5a18b4670eb4cea32c1c76295eb70a8865 (diff)
downloadbash-5.0-beta2.tar.gz
bash-5.0-beta2 releasebash-5.0-beta2
Diffstat (limited to 'tests/exec12.sub')
-rw-r--r--tests/exec12.sub3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/exec12.sub b/tests/exec12.sub
index bc627d2d..79bcfc77 100644
--- a/tests/exec12.sub
+++ b/tests/exec12.sub
@@ -4,7 +4,8 @@ trap 'rm -f $TMPFILE' 0
rm -f $TMPFILE
set -e
-exit_handler() { echo "exit code: $?" ; touch $TMPFILE; }
+# we normalize the exit code to accommodate false returning 255 on Solaris
+exit_handler() { echo "exit code: $(( $? != 0 ))" ; touch $TMPFILE; }
false() { ! :; }
notfound() { nosuchcommand ; }
syntaxerror() { !:; }