| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: glob.7,v 1.1 2010/11/30 20:59:10 jruoho Exp $ | | 1 | .\" $NetBSD: glob.7,v 1.2 2011/01/19 00:21:19 uwe 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 |
| @@ -75,30 +75,30 @@ instead of the end of the list. | | | @@ -75,30 +75,30 @@ instead of the end of the list. |
75 | Also, a | | 75 | Also, a |
76 | .Ql \&! | | 76 | .Ql \&! |
77 | appearing at the start of the list has special meaning (see below), so to | | 77 | appearing at the start of the list has special meaning (see below), so to |
78 | represent itself it must be quoted or appear later in the list. | | 78 | represent itself it must be quoted or appear later in the list. |
79 | .Pp | | 79 | .Pp |
80 | Within a bracket expression, the name of a | | 80 | Within a bracket expression, the name of a |
81 | .Em character class | | 81 | .Em character class |
82 | enclosed in | | 82 | enclosed in |
83 | .Sq [: | | 83 | .Sq [: |
84 | and | | 84 | and |
85 | .Sq :] | | 85 | .Sq :] |
86 | stands for the list of all characters belonging to that class. | | 86 | stands for the list of all characters belonging to that class. |
87 | Supported character classes: | | 87 | Supported character classes: |
88 | .Bl -column "xdigit" "xdigit" "xdigit" -offset indent | | 88 | .Bl -column ".Li xdigit" ".Li xdigit" ".Li xdigit" -offset indent |
89 | .It Li "alnum" Ta "cntrl" Ta "lower" Ta "space" | | 89 | .It Li "alnum" Ta Li "cntrl" Ta Li "lower" Ta Li "space" |
90 | .It Li "alpha" Ta "digit" Ta "print" Ta "upper" | | 90 | .It Li "alpha" Ta Li "digit" Ta Li "print" Ta Li "upper" |
91 | .It Li "blank" Ta "graph" Ta "punct" Ta "xdigit" | | 91 | .It Li "blank" Ta Li "graph" Ta Li "punct" Ta Li "xdigit" |
92 | .El | | 92 | .El |
93 | .Pp | | 93 | .Pp |
94 | These match characters using the macros specified in | | 94 | These match characters using the macros specified in |
95 | .Xr ctype 3 . | | 95 | .Xr ctype 3 . |
96 | A character class may not be used as an endpoint of a range. | | 96 | A character class may not be used as an endpoint of a range. |
97 | .It [!..] | | 97 | .It [!..] |
98 | Like [..], | | 98 | Like [..], |
99 | except it matches any character not inside the brackets. | | 99 | except it matches any character not inside the brackets. |
100 | .It \e | | 100 | .It \e |
101 | Matches the character following it verbatim. | | 101 | Matches the character following it verbatim. |
102 | This is useful to quote the special characters | | 102 | This is useful to quote the special characters |
103 | .Ql \&? , | | 103 | .Ql \&? , |
104 | .Ql \&* , | | 104 | .Ql \&* , |