summaryrefslogtreecommitdiffstats
path: root/tests/dollar-star6.sub
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/dollar-star6.sub19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/dollar-star6.sub b/tests/dollar-star6.sub
new file mode 100644
index 0000000..dbd59ec
--- /dev/null
+++ b/tests/dollar-star6.sub
@@ -0,0 +1,19 @@
+recho "A${*:-w}R"
+recho "A${*-w}R"
+recho "A${*}R"
+
+set -- ""
+
+recho "A${*:-w}R"
+recho "A${*-w}R"
+recho "A${*}R"
+
+set -- $'\177'
+
+recho "A${*:+w}R"
+recho "A${*+w}R"
+recho "A${*}R"
+
+recho A${*:+w}R
+recho A${*+w}R
+recho A${*}R