busybox/shell/hush_test/hush-vars/readonly0.right
Denys Vlasenko 5b2cc0aaee hush: do not assign to readonly VAR in "VAR=VAL CMD" syntax too
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-07-18 02:44:06 +02:00

15 lines
227 B
Plaintext

readonly a=A
readonly b=B
Ok:0
hush: a=A: readonly variable
Fail:1
hush: a=A: readonly variable
Fail:1
hush: a=Z: readonly variable
Fail:1
hush: a=Z: readonly variable
b=B
^^^a is not exported
hush: a: readonly variable
Fail:1