aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-31 11:07:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-31 16:36:49 +0200
commita0577305165ea4116ea72b5529c61966eea1c6e9 (patch)
treeaa1cc62d4dba16cf48937eeebbe314e22b4b2132
parenta4bcb9f98b00885823c8c9b2b5fc53bc52c1edc9 (diff)
Refine testscript cleanup spec wrt wildcards
-rw-r--r--doc/testscript.cli24
1 files changed, 13 insertions, 11 deletions
diff --git a/doc/testscript.cli b/doc/testscript.cli
index 79dcbce..685915e 100644
--- a/doc/testscript.cli
+++ b/doc/testscript.cli
@@ -2150,17 +2150,19 @@ The path components may contain the \c{*} and \c{?} wildcard characters
with the following semantics:
\
-? - any single character
-* - all immediate files
-*/ - all immediate sub-directories (which must be empty)
-** - all files recursively
-**/ - all sub-directories recursively (which must be empty)
-*** - all files and sub-directories recursively as well as the start
- directory itself
-\
-
-For example, the following cleanup will remove \c{dir/} and its content
-recursively.
+? - any single character
+* - all immediate files
+*/ - all immediate sub-directories (which must be empty)
+** - all files recursively
+**/ - all sub-directories recursively (which must be empty)
+***/ - all sub-directories recursively (which must be empty)
+ as well as the start directory itself
+\
+
+In addition, if the last component in the path is \c{***} (without trailing
+directory separator), then it matches all files and sub-directories
+recursively as well as the start directory itself. For example, the following
+cleanup will remove \c{dir/} and its content recursively.
\
$* &dir/***