From: Todd C. Miller Date: Fri, 3 Oct 2008 19:56:40 +0000 (+0000) Subject: Mention POSIX characters classes now that out fnmatch() and glob() X-Git-Tag: SUDO_1_7_0~79 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22103775cb9236b6f13d138e5377b112335b76cd;p=sudo Mention POSIX characters classes now that out fnmatch() and glob() support them. --- diff --git a/sudoers.pod b/sudoers.pod index 1cbbfea9f..55cff0f0c 100644 --- a/sudoers.pod +++ b/sudoers.pod @@ -401,6 +401,15 @@ escape special characters such as: "*", "?", "[", and "}". =back +POSIX character classes may also be used if your system's +L function supports them. However, because the +C<':'> character has special meaning in I, it must +be escaped. For example: + + /bin/ls [[\:alpha\:]]* + +Would match any filename beginning with a letter. + Note that a forward slash ('/') will B be matched by wildcards used in the pathname. When matching the command line arguments, however, a slash B get matched by