2016-10-28 19:13:50 +05:30
|
|
|
readonly bla=123
|
|
|
|
# Bare "eval bla=123" should abort ("eval" is a special builtin):
|
|
|
|
(eval bla=123 2>/dev/null; echo BUG)
|
2017-07-21 17:07:25 +05:30
|
|
|
echo Fail:$?
|
2016-10-28 19:13:50 +05:30
|
|
|
# "command BLTIN" disables "special-ness", should not abort:
|
|
|
|
command eval bla=123 2>/dev/null
|
2017-07-21 17:07:25 +05:30
|
|
|
echo Fail:$?
|