summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars/var_posix1.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-vars/var_posix1.tests')
-rwxr-xr-xshell/hush_test/hush-vars/var_posix1.tests22
1 files changed, 22 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/var_posix1.tests b/shell/hush_test/hush-vars/var_posix1.tests
index 4139e2c..d3205b1 100755
--- a/shell/hush_test/hush-vars/var_posix1.tests
+++ b/shell/hush_test/hush-vars/var_posix1.tests
@@ -1,3 +1,25 @@
+unset var
+
+echo ${var#}
+echo ${var##}
+echo ${var#*}
+echo ${var##*}
+echo ${var%}
+echo ${var%%}
+echo ${var%*}
+echo ${var%%*}
+
+var=
+
+echo ${var#}
+echo ${var##}
+echo ${var#*}
+echo ${var##*}
+echo ${var%}
+echo ${var%%}
+echo ${var%*}
+echo ${var%%*}
+
var=ababcdcd
echo ${var#ab}