diff options
Diffstat (limited to 'shell/ash_test/ash-vars/readonly1.tests')
-rwxr-xr-x | shell/ash_test/ash-vars/readonly1.tests | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/ash_test/ash-vars/readonly1.tests b/shell/ash_test/ash-vars/readonly1.tests new file mode 100755 index 0000000..81b461f --- /dev/null +++ b/shell/ash_test/ash-vars/readonly1.tests @@ -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:$? |