| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:26+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "glob" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "glob - globbing pathnames" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "DESCRIPTION" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 61 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "" |
| 63 |
"Long ago, in UNIX\\ V6, there was a program I</etc/glob> that would expand " |
| 64 |
"wildcard patterns. Soon afterward this became a shell built-in." |
| 65 |
msgstr "" |
| 66 |
|
| 67 |
#. type: Plain text |
| 68 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 69 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 70 |
msgid "" |
| 71 |
"These days there is also a library routine B<glob>(3) that will perform " |
| 72 |
"this function for a user program." |
| 73 |
msgstr "" |
| 74 |
|
| 75 |
#. type: Plain text |
| 76 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 77 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 78 |
msgid "The rules are as follows (POSIX.2, 3.13)." |
| 79 |
msgstr "" |
| 80 |
|
| 81 |
#. type: SS |
| 82 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 83 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "Wildcard matching" |
| 86 |
msgstr "" |
| 87 |
|
| 88 |
#. type: Plain text |
| 89 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 90 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 91 |
msgid "" |
| 92 |
"A string is a wildcard pattern if it contains one of the characters \\[aq]?\\" |
| 93 |
"[aq], \\[aq]*\\[aq], or \\[aq][\\[aq]. Globbing is the operation that " |
| 94 |
"expands a wildcard pattern into the list of pathnames matching the pattern. " |
| 95 |
"Matching is defined by:" |
| 96 |
msgstr "" |
| 97 |
|
| 98 |
#. type: Plain text |
| 99 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 100 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 101 |
msgid "A \\[aq]?\\[aq] (not between brackets) matches any single character." |
| 102 |
msgstr "" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
msgid "" |
| 108 |
"A \\[aq]*\\[aq] (not between brackets) matches any string, including the " |
| 109 |
"empty string." |
| 110 |
msgstr "" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
msgid "B<Character classes>" |
| 116 |
msgstr "" |
| 117 |
|
| 118 |
#. type: Plain text |
| 119 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 120 |
#: opensuse-tumbleweed |
| 121 |
msgid "" |
| 122 |
"An expression \\[dq]I<[...]>\\[dq] where the first character after the " |
| 123 |
"leading \\[aq][\\[aq] is not an \\[aq]!\\[aq] matches a single character, " |
| 124 |
"namely any of the characters enclosed by the brackets. The string enclosed " |
| 125 |
"by the brackets cannot be empty; therefore \\[aq]]\\[aq] can be allowed " |
| 126 |
"between the brackets, provided that it is the first character. (Thus, \\" |
| 127 |
"[dq]I<[][!]>\\[dq] matches the three characters \\[aq][\\[aq], \\[aq]]\\" |
| 128 |
"[aq], and \\[aq]!\\[aq].)" |
| 129 |
msgstr "" |
| 130 |
|
| 131 |
#. type: Plain text |
| 132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 133 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 134 |
msgid "B<Ranges>" |
| 135 |
msgstr "" |
| 136 |
|
| 137 |
#. type: Plain text |
| 138 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 139 |
#: opensuse-tumbleweed |
| 140 |
msgid "" |
| 141 |
"There is one special convention: two characters separated by \\[aq]-\\[aq] " |
| 142 |
"denote a range. (Thus, \\[dq]I<[A-Fa-f0-9]>\\[dq] is equivalent to \\" |
| 143 |
"[dq]I<[ABCDEFabcdef0123456789]>\\[dq].) One may include \\[aq]-\\[aq] in " |
| 144 |
"its literal meaning by making it the first or last character between the " |
| 145 |
"brackets. (Thus, \\[dq]I<[]-]>\\[dq] matches just the two characters \\[aq]]" |
| 146 |
"\\[aq] and \\[aq]-\\[aq], and \\[dq]I<[--0]>\\[dq] matches the three " |
| 147 |
"characters \\[aq]-\\[aq], \\[aq].\\[aq], and \\[aq]0\\[aq], since \\[aq]/\\" |
| 148 |
"[aq] cannot be matched.)" |
| 149 |
msgstr "" |
| 150 |
|
| 151 |
#. type: Plain text |
| 152 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 153 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 154 |
msgid "B<Complementation>" |
| 155 |
msgstr "" |
| 156 |
|
| 157 |
#. type: Plain text |
| 158 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 159 |
#: opensuse-tumbleweed |
| 160 |
msgid "" |
| 161 |
"An expression \\[dq]I<[!...]>\\[dq] matches a single character, namely any " |
| 162 |
"character that is not matched by the expression obtained by removing the " |
| 163 |
"first \\[aq]!\\[aq] from it. (Thus, \\[dq]I<[!]a-]>\\[dq] matches any " |
| 164 |
"single character except \\[aq]]\\[aq], \\[aq]a\\[aq], and \\[aq]-\\[aq].)" |
| 165 |
msgstr "" |
| 166 |
|
| 167 |
#. type: Plain text |
| 168 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 169 |
#: opensuse-tumbleweed |
| 170 |
msgid "" |
| 171 |
"One can remove the special meaning of \\[aq]?\\[aq], \\[aq]*\\[aq], and \\" |
| 172 |
"[aq][\\[aq] by preceding them by a backslash, or, in case this is part of a " |
| 173 |
"shell command line, enclosing them in quotes. Between brackets these " |
| 174 |
"characters stand for themselves. Thus, \\[dq]I<[[?*\\[rs]]>\\[dq] matches " |
| 175 |
"the four characters \\[aq][\\[aq], \\[aq]?\\[aq], \\[aq]*\\[aq], and \\[aq]\\" |
| 176 |
"[rs]\\[aq]." |
| 177 |
msgstr "" |
| 178 |
|
| 179 |
#. type: SS |
| 180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
#, no-wrap |
| 183 |
msgid "Pathnames" |
| 184 |
msgstr "" |
| 185 |
|
| 186 |
#. type: Plain text |
| 187 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 188 |
#: opensuse-tumbleweed |
| 189 |
msgid "" |
| 190 |
"Globbing is applied on each of the components of a pathname separately. A \\" |
| 191 |
"[aq]/\\[aq] in a pathname cannot be matched by a \\[aq]?\\[aq] or \\[aq]*\\" |
| 192 |
"[aq] wildcard, or by a range like \\[dq]I<[.-0]>\\[dq]. A range containing " |
| 193 |
"an explicit \\[aq]/\\[aq] character is syntactically incorrect. (POSIX " |
| 194 |
"requires that syntactically incorrect patterns are left unchanged.)" |
| 195 |
msgstr "" |
| 196 |
|
| 197 |
#. type: Plain text |
| 198 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 199 |
#: opensuse-tumbleweed |
| 200 |
msgid "" |
| 201 |
"If a filename starts with a \\[aq].\\[aq], this character must be matched " |
| 202 |
"explicitly. (Thus, I<rm\\ *> will not remove I<.profile>, and I<tar\\ c\\ " |
| 203 |
"*> will not archive all your files; I<tar\\ c\\ .> is better.)" |
| 204 |
msgstr "" |
| 205 |
|
| 206 |
#. type: SS |
| 207 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 208 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
#, no-wrap |
| 210 |
msgid "Empty lists" |
| 211 |
msgstr "" |
| 212 |
|
| 213 |
#. type: Plain text |
| 214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 215 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 216 |
msgid "" |
| 217 |
"The nice and simple rule given above: \"expand a wildcard pattern into the " |
| 218 |
"list of matching pathnames\" was the original UNIX definition. It allowed " |
| 219 |
"one to have patterns that expand into an empty list, as in" |
| 220 |
msgstr "" |
| 221 |
|
| 222 |
#. type: Plain text |
| 223 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 224 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 225 |
#, no-wrap |
| 226 |
msgid " xv -wait 0 *.gif *.jpg\n" |
| 227 |
msgstr "" |
| 228 |
|
| 229 |
#. type: Plain text |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
msgid "" |
| 233 |
"where perhaps no *.gif files are present (and this is not an error). " |
| 234 |
"However, POSIX requires that a wildcard pattern is left unchanged when it is " |
| 235 |
"syntactically incorrect, or the list of matching pathnames is empty. With " |
| 236 |
"I<bash> one can force the classical behavior using this command:" |
| 237 |
msgstr "" |
| 238 |
|
| 239 |
#. type: Plain text |
| 240 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 241 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 242 |
#, no-wrap |
| 243 |
msgid "shopt -s nullglob\n" |
| 244 |
msgstr "" |
| 245 |
|
| 246 |
#. type: Plain text |
| 247 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 248 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 249 |
msgid "(Similar problems occur elsewhere. For example, where old scripts have" |
| 250 |
msgstr "" |
| 251 |
|
| 252 |
#. type: Plain text |
| 253 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 254 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 255 |
#, no-wrap |
| 256 |
msgid "rm \\`find . -name \"*\\[ti]\"\\`\n" |
| 257 |
msgstr "" |
| 258 |
|
| 259 |
#. type: Plain text |
| 260 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 261 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 262 |
msgid "new scripts require" |
| 263 |
msgstr "" |
| 264 |
|
| 265 |
#. type: Plain text |
| 266 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 267 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 268 |
#, no-wrap |
| 269 |
msgid "rm -f nosuchfile \\`find . -name \"*\\[ti]\"\\`\n" |
| 270 |
msgstr "" |
| 271 |
|
| 272 |
#. type: Plain text |
| 273 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 274 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 275 |
msgid "to avoid error messages from I<rm> called with an empty argument list.)" |
| 276 |
msgstr "" |
| 277 |
|
| 278 |
#. type: SH |
| 279 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 280 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 281 |
#, no-wrap |
| 282 |
msgid "NOTES" |
| 283 |
msgstr "" |
| 284 |
|
| 285 |
#. type: SS |
| 286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 287 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 288 |
#, no-wrap |
| 289 |
msgid "Regular expressions" |
| 290 |
msgstr "" |
| 291 |
|
| 292 |
#. type: Plain text |
| 293 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 294 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 295 |
msgid "" |
| 296 |
"Note that wildcard patterns are not regular expressions, although they are a " |
| 297 |
"bit similar. First of all, they match filenames, rather than text, and " |
| 298 |
"secondly, the conventions are not the same: for example, in a regular " |
| 299 |
"expression \\[aq]*\\[aq] means zero or more copies of the preceding thing." |
| 300 |
msgstr "" |
| 301 |
|
| 302 |
#. type: Plain text |
| 303 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 304 |
#: opensuse-tumbleweed |
| 305 |
msgid "" |
| 306 |
"Now that regular expressions have bracket expressions where the negation is " |
| 307 |
"indicated by a \\[aq]\\[ha]\\[aq], POSIX has declared the effect of a " |
| 308 |
"wildcard pattern \\[dq]I<[\\[ha]...]>\\[dq] to be undefined." |
| 309 |
msgstr "" |
| 310 |
|
| 311 |
#. type: SS |
| 312 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 313 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 314 |
#, no-wrap |
| 315 |
msgid "Character classes and internationalization" |
| 316 |
msgstr "" |
| 317 |
|
| 318 |
#. type: Plain text |
| 319 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 320 |
#: opensuse-tumbleweed |
| 321 |
msgid "" |
| 322 |
"Of course ranges were originally meant to be ASCII ranges, so that \\" |
| 323 |
"[dq]I<[\\ -%]>\\[dq] stands for \\[dq]I<[\\ !\\[dq]#$%]>\\[dq] and \\" |
| 324 |
"[dq]I<[a-z]>\\[dq] stands for \"any lowercase letter\". Some UNIX " |
| 325 |
"implementations generalized this so that a range X-Y stands for the set of " |
| 326 |
"characters with code between the codes for X and for Y. However, this " |
| 327 |
"requires the user to know the character coding in use on the local system, " |
| 328 |
"and moreover, is not convenient if the collating sequence for the local " |
| 329 |
"alphabet differs from the ordering of the character codes. Therefore, POSIX " |
| 330 |
"extended the bracket notation greatly, both for wildcard patterns and for " |
| 331 |
"regular expressions. In the above we saw three types of items that can " |
| 332 |
"occur in a bracket expression: namely (i) the negation, (ii) explicit single " |
| 333 |
"characters, and (iii) ranges. POSIX specifies ranges in an internationally " |
| 334 |
"more useful way and adds three more types:" |
| 335 |
msgstr "" |
| 336 |
|
| 337 |
#. type: Plain text |
| 338 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 339 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 340 |
msgid "" |
| 341 |
"(iii) Ranges X-Y comprise all characters that fall between X and Y " |
| 342 |
"(inclusive) in the current collating sequence as defined by the " |
| 343 |
"B<LC_COLLATE> category in the current locale." |
| 344 |
msgstr "" |
| 345 |
|
| 346 |
#. type: Plain text |
| 347 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 348 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 349 |
msgid "(iv) Named character classes, like" |
| 350 |
msgstr "" |
| 351 |
|
| 352 |
#. type: Plain text |
| 353 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 354 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 355 |
#, no-wrap |
| 356 |
msgid "" |
| 357 |
"[:alnum:] [:alpha:] [:blank:] [:cntrl:]\n" |
| 358 |
"[:digit:] [:graph:] [:lower:] [:print:]\n" |
| 359 |
"[:punct:] [:space:] [:upper:] [:xdigit:]\n" |
| 360 |
msgstr "" |
| 361 |
|
| 362 |
#. type: Plain text |
| 363 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 364 |
#: opensuse-tumbleweed |
| 365 |
msgid "" |
| 366 |
"so that one can say \\[dq]I<[[:lower:]]>\\[dq] instead of \\[dq]I<[a-z]>\\" |
| 367 |
"[dq], and have things work in Denmark, too, where there are three letters " |
| 368 |
"past \\[aq]z\\[aq] in the alphabet. These character classes are defined by " |
| 369 |
"the B<LC_CTYPE> category in the current locale." |
| 370 |
msgstr "" |
| 371 |
|
| 372 |
#. type: Plain text |
| 373 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 374 |
#: opensuse-tumbleweed |
| 375 |
msgid "" |
| 376 |
"(v) Collating symbols, like \\[dq]I<[.ch.]>\\[dq] or \\[dq]I<[.a-acute.]>\\" |
| 377 |
"[dq], where the string between \\[dq]I<[.>\\[dq] and \\[dq]I<.]>\\[dq] is a " |
| 378 |
"collating element defined for the current locale. Note that this may be a " |
| 379 |
"multicharacter element." |
| 380 |
msgstr "" |
| 381 |
|
| 382 |
#. type: Plain text |
| 383 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 384 |
#: opensuse-tumbleweed |
| 385 |
msgid "" |
| 386 |
"(vi) Equivalence class expressions, like \\[dq]I<[=a=]>\\[dq], where the " |
| 387 |
"string between \\[dq]I<[=>\\[dq] and \\[dq]I<=]>\\[dq] is any collating " |
| 388 |
"element from its equivalence class, as defined for the current locale. For " |
| 389 |
"example, \\[dq]I<[[=a=]]>\\[dq] might be equivalent to \\[dq]I<[a\\('a\\(`a\\" |
| 390 |
"(:a\\(^a]>\\[dq], that is, to \\[dq]I<[a[.a-acute.][.a-grave.][.a-umlaut.]" |
| 391 |
"[.a-circumflex.]]>\\[dq]." |
| 392 |
msgstr "" |
| 393 |
|
| 394 |
#. type: SH |
| 395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 396 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 397 |
#, no-wrap |
| 398 |
msgid "SEE ALSO" |
| 399 |
msgstr "" |
| 400 |
|
| 401 |
#. type: Plain text |
| 402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 403 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 404 |
msgid "B<sh>(1), B<fnmatch>(3), B<glob>(3), B<locale>(7), B<regex>(7)" |
| 405 |
msgstr "" |
| 406 |
|
| 407 |
#. type: TH |
| 408 |
#: debian-trixie fedora-44 fedora-rawhide |
| 409 |
#, no-wrap |
| 410 |
msgid "2024-06-15" |
| 411 |
msgstr "" |
| 412 |
|
| 413 |
#. type: TH |
| 414 |
#: debian-trixie |
| 415 |
#, no-wrap |
| 416 |
msgid "Linux man-pages 6.9.1" |
| 417 |
msgstr "" |
| 418 |
|
| 419 |
#. type: Plain text |
| 420 |
#: debian-trixie fedora-44 fedora-rawhide |
| 421 |
msgid "" |
| 422 |
"An expression \"I<[...]>\" where the first character after the leading \\[aq]" |
| 423 |
"[\\[aq] is not an \\[aq]!\\[aq] matches a single character, namely any of " |
| 424 |
"the characters enclosed by the brackets. The string enclosed by the " |
| 425 |
"brackets cannot be empty; therefore \\[aq]]\\[aq] can be allowed between the " |
| 426 |
"brackets, provided that it is the first character. (Thus, \"I<[][!]>\" " |
| 427 |
"matches the three characters \\[aq][\\[aq], \\[aq]]\\[aq], and \\[aq]!\\" |
| 428 |
"[aq].)" |
| 429 |
msgstr "" |
| 430 |
|
| 431 |
#. type: Plain text |
| 432 |
#: debian-trixie fedora-44 fedora-rawhide |
| 433 |
msgid "" |
| 434 |
"There is one special convention: two characters separated by \\[aq]-\\[aq] " |
| 435 |
"denote a range. (Thus, \"I<[A-Fa-f0-9]>\" is equivalent to " |
| 436 |
"\"I<[ABCDEFabcdef0123456789]>\".) One may include \\[aq]-\\[aq] in its " |
| 437 |
"literal meaning by making it the first or last character between the " |
| 438 |
"brackets. (Thus, \"I<[]-]>\" matches just the two characters \\[aq]]\\[aq] " |
| 439 |
"and \\[aq]-\\[aq], and \"I<[--0]>\" matches the three characters \\[aq]-\\" |
| 440 |
"[aq], \\[aq].\\[aq], and \\[aq]0\\[aq], since \\[aq]/\\[aq] cannot be " |
| 441 |
"matched.)" |
| 442 |
msgstr "" |
| 443 |
|
| 444 |
#. type: Plain text |
| 445 |
#: debian-trixie fedora-44 fedora-rawhide |
| 446 |
msgid "" |
| 447 |
"An expression \"I<[!...]>\" matches a single character, namely any character " |
| 448 |
"that is not matched by the expression obtained by removing the first \\[aq]!" |
| 449 |
"\\[aq] from it. (Thus, \"I<[!]a-]>\" matches any single character except \\" |
| 450 |
"[aq]]\\[aq], \\[aq]a\\[aq], and \\[aq]-\\[aq].)" |
| 451 |
msgstr "" |
| 452 |
|
| 453 |
#. type: Plain text |
| 454 |
#: debian-trixie fedora-44 fedora-rawhide |
| 455 |
msgid "" |
| 456 |
"One can remove the special meaning of \\[aq]?\\[aq], \\[aq]*\\[aq], and \\" |
| 457 |
"[aq][\\[aq] by preceding them by a backslash, or, in case this is part of a " |
| 458 |
"shell command line, enclosing them in quotes. Between brackets these " |
| 459 |
"characters stand for themselves. Thus, \"I<[[?*\\[rs]]>\" matches the four " |
| 460 |
"characters \\[aq][\\[aq], \\[aq]?\\[aq], \\[aq]*\\[aq], and \\[aq]\\[rs]\\" |
| 461 |
"[aq]." |
| 462 |
msgstr "" |
| 463 |
|
| 464 |
#. type: Plain text |
| 465 |
#: debian-trixie fedora-44 fedora-rawhide |
| 466 |
msgid "" |
| 467 |
"Globbing is applied on each of the components of a pathname separately. A \\" |
| 468 |
"[aq]/\\[aq] in a pathname cannot be matched by a \\[aq]?\\[aq] or \\[aq]*\\" |
| 469 |
"[aq] wildcard, or by a range like \"I<[.-0]>\". A range containing an " |
| 470 |
"explicit \\[aq]/\\[aq] character is syntactically incorrect. (POSIX " |
| 471 |
"requires that syntactically incorrect patterns are left unchanged.)" |
| 472 |
msgstr "" |
| 473 |
|
| 474 |
#. type: Plain text |
| 475 |
#: debian-trixie fedora-44 fedora-rawhide |
| 476 |
msgid "" |
| 477 |
"If a filename starts with a \\[aq].\\[aq], this character must be matched " |
| 478 |
"explicitly. (Thus, I<rm\\ *> will not remove .profile, and I<tar\\ c\\ *> " |
| 479 |
"will not archive all your files; I<tar\\ c\\ .> is better.)" |
| 480 |
msgstr "" |
| 481 |
|
| 482 |
#. type: Plain text |
| 483 |
#: debian-trixie fedora-44 fedora-rawhide |
| 484 |
msgid "" |
| 485 |
"Now that regular expressions have bracket expressions where the negation is " |
| 486 |
"indicated by a \\[aq]\\[ha]\\[aq], POSIX has declared the effect of a " |
| 487 |
"wildcard pattern \"I<[\\[ha]...]>\" to be undefined." |
| 488 |
msgstr "" |
| 489 |
|
| 490 |
#. type: Plain text |
| 491 |
#: debian-trixie fedora-44 fedora-rawhide |
| 492 |
msgid "" |
| 493 |
"Of course ranges were originally meant to be ASCII ranges, so that \"I<[\\ -" |
| 494 |
"%]>\" stands for \"I<[\\ !\"#$%]>\" and \"I<[a-z]>\" stands for \"any " |
| 495 |
"lowercase letter\". Some UNIX implementations generalized this so that a " |
| 496 |
"range X-Y stands for the set of characters with code between the codes for X " |
| 497 |
"and for Y. However, this requires the user to know the character coding in " |
| 498 |
"use on the local system, and moreover, is not convenient if the collating " |
| 499 |
"sequence for the local alphabet differs from the ordering of the character " |
| 500 |
"codes. Therefore, POSIX extended the bracket notation greatly, both for " |
| 501 |
"wildcard patterns and for regular expressions. In the above we saw three " |
| 502 |
"types of items that can occur in a bracket expression: namely (i) the " |
| 503 |
"negation, (ii) explicit single characters, and (iii) ranges. POSIX " |
| 504 |
"specifies ranges in an internationally more useful way and adds three more " |
| 505 |
"types:" |
| 506 |
msgstr "" |
| 507 |
|
| 508 |
#. type: Plain text |
| 509 |
#: debian-trixie fedora-44 fedora-rawhide |
| 510 |
msgid "" |
| 511 |
"so that one can say \"I<[[:lower:]]>\" instead of \"I<[a-z]>\", and have " |
| 512 |
"things work in Denmark, too, where there are three letters past \\[aq]z\\" |
| 513 |
"[aq] in the alphabet. These character classes are defined by the " |
| 514 |
"B<LC_CTYPE> category in the current locale." |
| 515 |
msgstr "" |
| 516 |
|
| 517 |
#. type: Plain text |
| 518 |
#: debian-trixie fedora-44 fedora-rawhide |
| 519 |
msgid "" |
| 520 |
"(v) Collating symbols, like \"I<[.ch.]>\" or \"I<[.a-acute.]>\", where the " |
| 521 |
"string between \"I<[.>\" and \"I<.]>\" is a collating element defined for " |
| 522 |
"the current locale. Note that this may be a multicharacter element." |
| 523 |
msgstr "" |
| 524 |
|
| 525 |
#. type: Plain text |
| 526 |
#: debian-trixie |
| 527 |
msgid "" |
| 528 |
"(vi) Equivalence class expressions, like \"I<[=a=]>\", where the string " |
| 529 |
"between \"I<[=>\" and \"I<=]>\" is any collating element from its " |
| 530 |
"equivalence class, as defined for the current locale. For example, " |
| 531 |
"\"I<[[=a=]]>\" might be equivalent to \"I<[a\\['a]\\[`a]\\[:a]\\[^a]]>\", " |
| 532 |
"that is, to \"I<[a[.a-acute.][.a-grave.][.a-umlaut.][.a-circumflex.]]>\"." |
| 533 |
msgstr "" |
| 534 |
|
| 535 |
#. type: TH |
| 536 |
#: fedora-44 fedora-rawhide |
| 537 |
#, no-wrap |
| 538 |
msgid "Linux man-pages 6.13" |
| 539 |
msgstr "" |
| 540 |
|
| 541 |
#. type: Plain text |
| 542 |
#: fedora-44 fedora-rawhide |
| 543 |
msgid "" |
| 544 |
"(vi) Equivalence class expressions, like \"I<[=a=]>\", where the string " |
| 545 |
"between \"I<[=>\" and \"I<=]>\" is any collating element from its " |
| 546 |
"equivalence class, as defined for the current locale. For example, " |
| 547 |
"\"I<[[=a=]]>\" might be equivalent to \"I<[a\\('a\\(`a\\(:a\\(^a]>\", that " |
| 548 |
"is, to \"I<[a[.a-acute.][.a-grave.][.a-umlaut.][.a-circumflex.]]>\"." |
| 549 |
msgstr "" |
| 550 |
|
| 551 |
#. type: TH |
| 552 |
#: mageia-cauldron |
| 553 |
#, no-wrap |
| 554 |
msgid "Linux man-pages 6.17" |
| 555 |
msgstr "" |
| 556 |
|
| 557 |
#. type: TH |
| 558 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 559 |
#, no-wrap |
| 560 |
msgid "Linux man-pages (unreleased)" |
| 561 |
msgstr "" |