[BUG] 'eval' returns 0 on error

Martijn Dekker martijn at inlv.org
Thu Dec 22 23:30:37 UTC 2016


On busybox 1.26.0, 'eval' returns status 0 even if there is a syntax error.

$ ( eval '(' ) && echo false positive
./ash: eval: syntax error: unexpected end of file (expecting ")")
false positive

This behaviour does not occur in 1.25.1.

Thanks,

- M.


More information about the busybox mailing list