From f645e1573c5521c87b972400f9b4abc3636983d4 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 18 Jul 2017 03:23:07 +0200 Subject: hush: another testcase for "READONLY_VAR=VAL BLTIN ..." Currently fails. Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-vars/readonly2.tests | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 shell/hush_test/hush-vars/readonly2.tests (limited to 'shell/hush_test/hush-vars/readonly2.tests') diff --git a/shell/hush_test/hush-vars/readonly2.tests b/shell/hush_test/hush-vars/readonly2.tests new file mode 100755 index 0000000..d9d178e --- /dev/null +++ b/shell/hush_test/hush-vars/readonly2.tests @@ -0,0 +1,6 @@ +unset a +readonly a=A + +# external commands and builtins should behave the same: +(exit 42); a=Z echo "Visible:$?" +(exit 42); a=Z env echo "Visible:$?" -- cgit v1.1