summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-vars/readonly0.right
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-18 02:44:06 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-18 02:44:06 +0200
commit5b2cc0aaee6985431d9bab1b49ceea7e1fa1d7af (patch)
tree456dfbf0232f7d0b0482bcc2eef96b6085fe98bd /shell/hush_test/hush-vars/readonly0.right
parent38ef39a1abd46ca390b0259ebd0b35e9ea9ccb68 (diff)
hush: do not assign to readonly VAR in "VAR=VAL CMD" syntax too
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-vars/readonly0.right')
-rw-r--r--shell/hush_test/hush-vars/readonly0.right6
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/hush_test/hush-vars/readonly0.right b/shell/hush_test/hush-vars/readonly0.right
index 9688d2e5f..07ca6e07f 100644
--- a/shell/hush_test/hush-vars/readonly0.right
+++ b/shell/hush_test/hush-vars/readonly0.right
@@ -5,8 +5,10 @@ hush: a=A: readonly variable
Fail:1
hush: a=A: readonly variable
Fail:1
-hush: a=A: readonly variable
+hush: a=Z: readonly variable
Fail:1
-Visible:0
+hush: a=Z: readonly variable
+b=B
+^^^a is not exported
hush: a: readonly variable
Fail:1