aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-12-27 14:56:24 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2013-12-27 14:56:24 +0200
commit4f8bf56e242660a36165300f826436a6d7fa0d22 (patch)
tree5e239208f0634a8c340dc56961cb3aa23a623ff6 /doc
parentee6ce9f5da1d780a9efe5a6126884d1f0ae1b5a2 (diff)
downloaddirevent-4f8bf56e242660a36165300f826436a6d7fa0d22.tar.gz
direvent-4f8bf56e242660a36165300f826436a6d7fa0d22.tar.bz2
Fix documentation of the "file" statement.
Diffstat (limited to 'doc')
-rw-r--r--doc/dircond.texi17
1 files changed, 12 insertions, 5 deletions
diff --git a/doc/dircond.texi b/doc/dircond.texi
index 922747f..760a8a9 100644
--- a/doc/dircond.texi
+++ b/doc/dircond.texi
@@ -790,11 +790,13 @@ At least one @code{path} must be defined.
@deffn {Config} file @var{regexp-list}
Selects which files are eligible for monitoring. The argument is a
-list of extended regular expressions@footnote{@xref{Extended
+list of globbing patterns (in the sense of
+@pxref{fnmatch, fnmatch, fnmatch, fnmatch manual,fnmatch(3)}) or
+extended regular expressions (@pxref{Extended
regexps, Extended regular expressions, Extended regular expressions,
-sed, GNU sed}.} which must match the file name in
-order for the watcher to act on it. Each regular expression can
-optionally be surrounded by a pair of slashes and followed by the
+sed, GNU sed}) one of which the file name must match in
+order for the watcher to act on it. Regular expressions must
+be surrounded by a pair of slashes, optionally followed by the
following flags:
@table @asis
@@ -808,8 +810,13 @@ Enable case-insensitive matching.
For example:
@example
-file (.*\\.cfg, /.*\\.jpg/i);
+file (*.cfg, /.*\\.jpg/i);
@end example
+
+@noindent
+In this statement, the first string (@samp{*.cfg}) is treated as a
+shell globbing pattern. The second one is a case-sensitive extended
+regular expression.
@end deffn
@deffn {Config} event @var{string-list}

Return to:

Send suggestions and report system problems to the System administrator.