summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars/readonly2.tests
diff options
context:
space:
mode:
authorDenys Vlasenko2017-07-18 03:23:07 +0200
committerDenys Vlasenko2017-07-18 03:23:07 +0200
commitf645e1573c5521c87b972400f9b4abc3636983d4 (patch)
tree89e95e92045f83a5dacf518c2c6a0dafc7185cd2 /shell/hush_test/hush-vars/readonly2.tests
parent5b2cc0aaee6985431d9bab1b49ceea7e1fa1d7af (diff)
downloadbusybox-f645e1573c5521c87b972400f9b4abc3636983d4.zip
busybox-f645e1573c5521c87b972400f9b4abc3636983d4.tar.gz
hush: another testcase for "READONLY_VAR=VAL BLTIN ..."
Currently fails. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-vars/readonly2.tests')
-rwxr-xr-xshell/hush_test/hush-vars/readonly2.tests6
1 files changed, 6 insertions, 0 deletions
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:$?"