diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-12-26 15:24:55 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-12-26 15:24:55 +0000 |
commit | 672b2b459d1c8fe6eb3fcb4da8f01a590d075fd2 (patch) | |
tree | 0decb7d029be43fdb45e2d71f5b72c0e3e5d16f6 | |
parent | 0ec29859b841b5bb1ce2ccf7e50c9a7a922c3a1b (diff) |
document quoting of special characters;
ok millert@, help and ok jmc@
-rw-r--r-- | share/man/man7/glob.7 | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/share/man/man7/glob.7 b/share/man/man7/glob.7 index a500d424c40..c1c22d2f60b 100644 --- a/share/man/man7/glob.7 +++ b/share/man/man7/glob.7 @@ -1,4 +1,4 @@ -.\" $OpenBSD: glob.7,v 1.2 2009/12/15 00:49:15 schwarze Exp $ +.\" $OpenBSD: glob.7,v 1.3 2009/12/26 15:24:54 schwarze Exp $ .\" .\" Copyright (c) 2009 Todd C. Miller <Todd.Miller@courtesan.com> .\" @@ -15,7 +15,7 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .\" -.Dd $Mdocdate: December 15 2009 $ +.Dd $Mdocdate: December 26 2009 $ .Dt GLOB 7 .Os .Sh NAME @@ -96,6 +96,19 @@ A character class may not be used as an endpoint of a range. .It [!..] Like [..], except it matches any character not inside the brackets. +.It \e +Matches the character following it verbatim. +This is useful to quote the special characters +.Ql \&? , +.Ql \&* , +.Ql \&[ , +and +.Ql \e +such that they lose their special meaning. +For example, the pattern +.Dq \e\e\e\&*\e[x]\e\&? +matches the string +.Dq \e\&*[x]\&? . .El .Pp Note that when matching a pathname, the path separator |