diff options
Diffstat (limited to 'tests/exec12.sub')
| -rw-r--r-- | tests/exec12.sub | 3 |
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() { !:; } |
