busybox/shell/ash_test/ash-vars/readonly1.tests
Denys Vlasenko d81e9f5093 ash: fix interactive "command eval STRING" exiting on errors.
This bug is also present in current dash

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-10-28 15:43:50 +02:00

8 lines
238 B
Plaintext
Executable File

readonly bla=123
# Bare "eval bla=123" should abort ("eval" is a special builtin):
(eval bla=123 2>/dev/null; echo BUG)
echo One:$?
# "command BLTIN" disables "special-ness", should not abort:
command eval bla=123 2>/dev/null
echo One:$?