From 5b2cc0aaee6985431d9bab1b49ceea7e1fa1d7af Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 18 Jul 2017 02:44:06 +0200 Subject: hush: do not assign to readonly VAR in "VAR=VAL CMD" syntax too Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-vars/readonly0.right | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'shell/hush_test/hush-vars/readonly0.right') diff --git a/shell/hush_test/hush-vars/readonly0.right b/shell/hush_test/hush-vars/readonly0.right index 9688d2e..07ca6e0 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 -- cgit v1.1