summaryrefslogtreecommitdiffstats
path: root/share/man/man7
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2009-12-26 15:24:54 +0000
committerschwarze <schwarze@openbsd.org>2009-12-26 15:24:54 +0000
commitd12e563e79acce08399148d33846bbec32420621 (patch)
treeabff397e16d0d413ac651146b1904703b731bc26 /share/man/man7
parentGet rid of the (unused) ``no accounting'' bus_space_{map,unmap} routines. (diff)
downloadwireguard-openbsd-d12e563e79acce08399148d33846bbec32420621.tar.xz
wireguard-openbsd-d12e563e79acce08399148d33846bbec32420621.zip
document quoting of special characters;
ok millert@, help and ok jmc@
Diffstat (limited to 'share/man/man7')
-rw-r--r--share/man/man7/glob.717
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