summaryrefslogtreecommitdiffabout
path: root/tests/wordsplit.at
Side-by-side diff
Diffstat (limited to 'tests/wordsplit.at') (more/less context) (ignore whitespace changes)
-rw-r--r--tests/wordsplit.at18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/wordsplit.at b/tests/wordsplit.at
index e3af703..1f2e80d 100644
--- a/tests/wordsplit.at
+++ b/tests/wordsplit.at
@@ -950,6 +950,24 @@ TOTAL: 3
[input exhausted
]))
+TESTWSP([variable nosplit],[],[novar novarsplit],
+[begin ${VAR:- a b} end],
+[NF: 3
+0: begin
+1: "${VAR:- a b}"
+2: end
+TOTAL: 3
+])
+
+TESTWSP([command nosplit],[],[nocmd nocmdsplit],
+[begin $(words a b) end],
+[NF: 3
+0: begin
+1: "$(words a b)"
+2: end
+TOTAL: 3
+])
+
m4_popdef([TESTWSP])
m4_popdef([wspnum])
m4_popdef([wspid])

Return to:

Send suggestions and report system problems to the System administrator.