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>
This commit is contained in:
7
shell/ash_test/ash-vars/readonly1.tests
Executable file
7
shell/ash_test/ash-vars/readonly1.tests
Executable file
@@ -0,0 +1,7 @@
|
||||
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:$?
|
||||
Reference in New Issue
Block a user