| @@ -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 |
26 | Globbing characters | | 26 | Globbing characters |
27 | .Pq wildcards | | 27 | .Pq wildcards |
28 | are special characters used to perform pattern matching of pathnames and | | 28 | are special characters used to perform pattern matching of pathnames and |
29 | command arguments in the | | 29 | command arguments in the |
30 | .Xr csh 1 , | | 30 | .Xr csh 1 , |
31 | .Xr ksh 1 , | | 31 | .Xr ksh 1 , |
32 | and | | 32 | and |
| @@ -115,29 +115,29 @@ matches the string | | | @@ -115,29 +115,29 @@ matches the string |
115 | .Pp | | 115 | .Pp |
116 | Note that when matching a pathname, the path separator | | 116 | Note that when matching a pathname, the path separator |
117 | .Ql / , | | 117 | .Ql / , |
118 | is not matched by a | | 118 | is not matched by a |
119 | .Ql \&? , | | 119 | .Ql \&? , |
120 | or | | 120 | or |
121 | .Ql * , | | 121 | .Ql * , |
122 | character or by a | | 122 | character or by a |
123 | .Dq Li [..] | | 123 | .Dq Li [..] |
124 | sequence. | | 124 | sequence. |
125 | Thus, | | 125 | Thus, |
126 | .Pa /usr/*/*/X11 | | 126 | .Pa /usr/*/*/X11 |
127 | would match | | 127 | would match |
128 | .Pa /usr/X11R6/lib/X11 | | 128 | .Pa /usr/X11R7/lib/X11 |
129 | and | | 129 | and |
130 | .Pa /usr/X11R6/include/X11 | | 130 | .Pa /usr/X11R7/include/X11 |
131 | while | | 131 | while |
132 | .Pa /usr/*/X11 | | 132 | .Pa /usr/*/X11 |
133 | would not match either. | | 133 | would not match either. |
134 | Likewise, | | 134 | Likewise, |
135 | .Pa /usr/*/bin | | 135 | .Pa /usr/*/bin |
136 | would match | | 136 | would match |
137 | .Pa /usr/local/bin | | 137 | .Pa /usr/local/bin |
138 | but not | | 138 | but 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 |