aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dollar-star5.sub
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dollar-star5.sub')
-rw-r--r--tests/dollar-star5.sub16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/dollar-star5.sub b/tests/dollar-star5.sub
new file mode 100644
index 0000000..8448bf3
--- /dev/null
+++ b/tests/dollar-star5.sub
@@ -0,0 +1,16 @@
+set -- a b
+IFS=
+
+echo $*
+echo "$*"
+
+a=abcd
+echo "${a#$*}"
+
+case ab in
+$*) echo ok 1;;
+esac
+
+case $* in
+ab) echo ok 2 ;;
+esac