bug in ash set -e

Natanael Copa ncopa at alpinelinux.org
Wed Nov 9 15:30:22 UTC 2016


Hi,

I have found a bug (or weird feature?) in busybox ash:

$ dash -c "set -e ; ( false ) ; echo 'should not echo'"
$ bash -c "set -e ; ( false ) ; echo 'should not echo'"
$ ash -c "set -e ; ( false ) ; echo 'should not echo'"
should not echo
$

It looks like `set -e` does not catch error in ( )

-nc


More information about the busybox mailing list