Mention POSIX characters classes now that out fnmatch() and glob()

support them.
This commit is contained in:
Todd C. Miller
2008-10-03 19:56:40 +00:00
parent 5446cd3ae6
commit 22103775cb

View 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