summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars/unset.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-vars/unset.tests')
-rwxr-xr-xshell/hush_test/hush-vars/unset.tests7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/hush_test/hush-vars/unset.tests b/shell/hush_test/hush-vars/unset.tests
index f59ce59..81243fb 100755
--- a/shell/hush_test/hush-vars/unset.tests
+++ b/shell/hush_test/hush-vars/unset.tests
@@ -1,4 +1,5 @@
# check invalid options are rejected
+# bash: in posix mode, aborts if non-interactive
unset -
echo $?
unset -m a b c
@@ -30,7 +31,9 @@ echo $? $f $g
# check read only vars
echo ___
f=f g=g
-unset HUSH_VERSION
+VAR_RO=1
+readonly VAR_RO
+unset VAR_RO
echo $? $f $g
-unset f HUSH_VERSION g
+unset f VAR_RO g
echo $? $f $g