Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man7 Be consistent in using (fixed width font) lit...
details: https://anonhg.NetBSD.org/src/rev/abc214a6d6b7
branches: trunk
changeset: 761031:abc214a6d6b7
user: uwe <uwe%NetBSD.org@localhost>
date: Wed Jan 19 00:33:10 2011 +0000
description:
Be consistent in using (fixed width font) literals.
diffstat:
share/man/man7/glob.7 | 31 ++++++++++++++++---------------
1 files changed, 16 insertions(+), 15 deletions(-)
diffs (91 lines):
diff -r 1cfd0ba0e080 -r abc214a6d6b7 share/man/man7/glob.7
--- a/share/man/man7/glob.7 Wed Jan 19 00:21:19 2011 +0000
+++ b/share/man/man7/glob.7 Wed Jan 19 00:33:10 2011 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: glob.7,v 1.2 2011/01/19 00:21:19 uwe Exp $
+.\" $NetBSD: glob.7,v 1.3 2011/01/19 00:33:10 uwe Exp $
.\"
.\" $OpenBSD: glob.7,v 1.3 2009/12/26 15:24:54 schwarze Exp $
.\"
@@ -41,7 +41,7 @@
or
.Ql *
characters, or
-.Dq [..]
+.Dq Li [..]
sequences.
.Pp
Globs should not be confused with the more powerful
@@ -52,21 +52,21 @@
.Pp
The pattern elements have the following meaning:
.Bl -tag -width Ds
-.It \&?
+.It Li \&?
Matches any single character.
-.It \&*
+.It Li \&*
Matches any sequence of zero or more characters.
-.It [..]
+.It Li [..]
Matches any of the characters inside the brackets.
Ranges of characters can be specified by separating two characters by a
-.Ql -
+.Ql \-
(e.g.\&
-.Dq [a0-9]
+.Dq Li [a0-9]
matches the letter
.Sq a
or any digit).
In order to represent itself, a
-.Ql -
+.Ql \-
must either be quoted or the first or last character in the character list.
Similarly, a
.Ql \&]
@@ -80,9 +80,9 @@
Within a bracket expression, the name of a
.Em character class
enclosed in
-.Sq [:
+.Ql [:
and
-.Sq :]
+.Ql :]
stands for the list of all characters belonging to that class.
Supported character classes:
.Bl -column ".Li xdigit" ".Li xdigit" ".Li xdigit" -offset indent
@@ -94,10 +94,11 @@
These match characters using the macros specified in
.Xr ctype 3 .
A character class may not be used as an endpoint of a range.
-.It [!..]
-Like [..],
+.It Li [!..]
+Like
+.Li [..] ,
except it matches any character not inside the brackets.
-.It \e
+.It Li \e
Matches the character following it verbatim.
This is useful to quote the special characters
.Ql \&? ,
@@ -107,7 +108,7 @@
.Ql \e
such that they lose their special meaning.
For example, the pattern
-.Dq \e\e\e\&*\e[x]\e\&?
+.Dq Li \e\e\e\&*\e[x]\e\&?
matches the string
.Dq \e\&*[x]\&? .
.El
@@ -119,7 +120,7 @@
or
.Ql * ,
character or by a
-.Dq [..]
+.Dq Li [..]
sequence.
Thus,
.Pa /usr/*/*/X11
Home |
Main Index |
Thread Index |
Old Index