busybox/shell/ash_test/ash-vars/readonly1.tests
Denys Vlasenko 0eed355eac ash: suppress readonly1.tests false positive; add readonly0.tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-07-21 13:37:25 +02:00

8 lines
240 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 Fail:$?
# "command BLTIN" disables "special-ness", should not abort:
command eval bla=123 2>/dev/null
echo Fail:$?