aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dollar-star2.sub
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dollar-star2.sub')
-rw-r--r--tests/dollar-star2.sub26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/dollar-star2.sub b/tests/dollar-star2.sub
new file mode 100644
index 0000000..844a297
--- /dev/null
+++ b/tests/dollar-star2.sub
@@ -0,0 +1,26 @@
+set A B
+
+IFS=
+
+x=$*
+y="$*"
+
+recho "$x"
+recho "$y"
+
+IFS=$' \t\n'
+
+set 'A B' 'C D'
+
+IFS=
+
+x=$*
+y="$*"
+
+recho "$x"
+recho "$y"
+
+recho $x
+recho $*
+recho $y
+recho "$*"