]> granicus.if.org Git - sudo/commitdiff
Mention POSIX characters classes now that out fnmatch() and glob()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 3 Oct 2008 19:56:40 +0000 (19:56 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 3 Oct 2008 19:56:40 +0000 (19:56 +0000)
support them.

sudoers.pod

index 1cbbfea9f611078d99a2245d5d1a626486628765..55cff0f0c65592dc04dbd3ff316c0d7facf08e29 100644 (file)
@@ -401,6 +401,15 @@ escape special characters such as: "*", "?", "[", and "}".
 
 =back
 
+POSIX character classes may also be used if your system's
+L<fnmatch(3)> function supports them.  However, because the
+C<':'> character has special meaning in I<sudoers>, it must
+be escaped.  For example:
+
+    /bin/ls [[\:alpha\:]]*
+
+Would match any filename beginning with a letter.
+
 Note that a forward slash ('/') will B<not> be matched by
 wildcards used in the pathname.  When matching the command
 line arguments, however, a slash B<does> get matched by