aboutsummaryrefslogtreecommitdiff
path: root/tests/name/pattern.testscript
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-11-15 16:18:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-11-15 16:18:08 +0200
commit678345c5a96f14d05a56bce8a68bdd45dfe1d172 (patch)
tree29472f6a24019bf71f26b0e55fa2a47c4fbed063 /tests/name/pattern.testscript
parent497793c854b9dfbf70c2c23813b6b7f06012bcc2 (diff)
Test and document wildcard character escaping
Also document the new bracket expression ([...]) wildcard support.
Diffstat (limited to 'tests/name/pattern.testscript')
-rw-r--r--tests/name/pattern.testscript12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/name/pattern.testscript b/tests/name/pattern.testscript
index 68c6745..ac8ee10 100644
--- a/tests/name/pattern.testscript
+++ b/tests/name/pattern.testscript
@@ -129,7 +129,17 @@ EOI
$* <'print {*.txt -f*.txt +*x.txt}' >'fox.txt' : include-exclude-order
touch foo.txt;
- $* <'print {+foo.txt} {+bar.txt}' >'foo.txt' : non-wildcard
+ $* <'print {+foo.txt} {+bar.txt}' >'foo.txt' : non-wildcard
+}
+
+: escaping
+:
+{
+ touch foo.txt;
+ $* <'print \[fgh]oo.txt' >'foo.txt' : bracket
+
+ touch true1.txt;
+ $* <'print (true\?.txt') >'true1.txt' : question
}
: target-type