Denys Vlasenko | d81e9f5 | 2016-10-28 15:43:50 +0200 | [diff] [blame] | 1 | readonly bla=123 |
2 | # Bare "eval bla=123" should abort ("eval" is a special builtin): | ||||
3 | (eval bla=123 2>/dev/null; echo BUG) | ||||
Denys Vlasenko | 0eed355 | 2017-07-21 13:37:25 +0200 | [diff] [blame] | 4 | echo Fail:$? |
Denys Vlasenko | d81e9f5 | 2016-10-28 15:43:50 +0200 | [diff] [blame] | 5 | # "command BLTIN" disables "special-ness", should not abort: |
6 | command eval bla=123 2>/dev/null | ||||
Denys Vlasenko | 0eed355 | 2017-07-21 13:37:25 +0200 | [diff] [blame] | 7 | echo Fail:$? |