busybox/shell/ash_test/ash-vars/readonly1.tests

8 lines
238 B
Plaintext
Raw Normal View History

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:$?