From 678345c5a96f14d05a56bce8a68bdd45dfe1d172 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 15 Nov 2019 16:18:08 +0200 Subject: Test and document wildcard character escaping Also document the new bracket expression ([...]) wildcard support. --- tests/name/pattern.testscript | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'tests/name') 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 -- cgit v1.1