Permalink
Browse files

Expose a case where busybox ash emulated bash's errexit incorrectly.

(At least for the versions on my Ubuntu 16.04 sytsem.)
  • Loading branch information...
Andy Chu
Andy Chu committed Jan 11, 2018
1 parent ba772f0 commit 74e14e085a8717bbb80e801e055aeaf102afdbbc
Showing with 9 additions and 2 deletions.
  1. +9 −2 spec/errexit.test.sh
View
@@ -142,8 +142,15 @@ echo done
### errexit with subshell
set -o errexit
( echo one; false; echo two; )
# stdout: one
# status: 1
echo three
## status: 1
## STDOUT:
one
## BUG ash status: 0
## BUG ash STDOUT:
one
three
## END
### setting errexit while it's being ignored
# ignored and then set again

0 comments on commit 74e14e0

Please sign in to comment.