Tue Nov 2 22:13:14 2021 UTC ()
Update glob example from X11R6 to X11R7


(abs)
diff -r1.3 -r1.4 src/share/man/man7/glob.7

cvs diff -r1.3 -r1.4 src/share/man/man7/glob.7 (expand / switch to unified diff)

--- src/share/man/man7/glob.7 2011/01/19 00:33:10 1.3
+++ src/share/man/man7/glob.7 2021/11/02 22:13:14 1.4
@@ -1,32 +1,32 @@ @@ -1,32 +1,32 @@
1.\" $NetBSD: glob.7,v 1.3 2011/01/19 00:33:10 uwe Exp $ 1.\" $NetBSD: glob.7,v 1.4 2021/11/02 22:13:14 abs Exp $
2.\" 2.\"
3.\" $OpenBSD: glob.7,v 1.3 2009/12/26 15:24:54 schwarze Exp $ 3.\" $OpenBSD: glob.7,v 1.3 2009/12/26 15:24:54 schwarze Exp $
4.\" 4.\"
5.\" Copyright (c) 2009 Todd C. Miller <Todd.Miller@courtesan.com> 5.\" Copyright (c) 2009 Todd C. Miller <Todd.Miller@courtesan.com>
6.\" 6.\"
7.\" Permission to use, copy, modify, and distribute this software for any 7.\" Permission to use, copy, modify, and distribute this software for any
8.\" purpose with or without fee is hereby granted, provided that the above 8.\" purpose with or without fee is hereby granted, provided that the above
9.\" copyright notice and this permission notice appear in all copies. 9.\" copyright notice and this permission notice appear in all copies.
10.\" 10.\"
11.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18.\" 18.\"
19.Dd November 30, 2010 19.Dd November 2, 2021
20.Dt GLOB 7 20.Dt GLOB 7
21.Os 21.Os
22.Sh NAME 22.Sh NAME
23.Nm glob 23.Nm glob
24.Nd shell-style pattern matching 24.Nd shell-style pattern matching
25.Sh DESCRIPTION 25.Sh DESCRIPTION
26Globbing characters 26Globbing characters
27.Pq wildcards 27.Pq wildcards
28are special characters used to perform pattern matching of pathnames and 28are special characters used to perform pattern matching of pathnames and
29command arguments in the 29command arguments in the
30.Xr csh 1 , 30.Xr csh 1 ,
31.Xr ksh 1 , 31.Xr ksh 1 ,
32and 32and
@@ -115,29 +115,29 @@ matches the string @@ -115,29 +115,29 @@ matches the string
115.Pp 115.Pp
116Note that when matching a pathname, the path separator 116Note that when matching a pathname, the path separator
117.Ql / , 117.Ql / ,
118is not matched by a 118is not matched by a
119.Ql \&? , 119.Ql \&? ,
120or 120or
121.Ql * , 121.Ql * ,
122character or by a 122character or by a
123.Dq Li [..] 123.Dq Li [..]
124sequence. 124sequence.
125Thus, 125Thus,
126.Pa /usr/*/*/X11 126.Pa /usr/*/*/X11
127would match 127would match
128.Pa /usr/X11R6/lib/X11 128.Pa /usr/X11R7/lib/X11
129and 129and
130.Pa /usr/X11R6/include/X11 130.Pa /usr/X11R7/include/X11
131while 131while
132.Pa /usr/*/X11 132.Pa /usr/*/X11
133would not match either. 133would not match either.
134Likewise, 134Likewise,
135.Pa /usr/*/bin 135.Pa /usr/*/bin
136would match 136would match
137.Pa /usr/local/bin 137.Pa /usr/local/bin
138but not 138but not
139.Pa /usr/bin . 139.Pa /usr/bin .
140.Sh SEE ALSO 140.Sh SEE ALSO
141.Xr fnmatch 3 , 141.Xr fnmatch 3 ,
142.Xr glob 3 , 142.Xr glob 3 ,
143.Xr re_format 7 143.Xr re_format 7