| version 1.18, 2006/12/01 18:57:29 |
version 1.19, 2007/12/05 20:25:56 |
| Line 59 __RCSID("$NetBSD$"); |
|
| Line 59 __RCSID("$NetBSD$"); |
|
| * expand ~user/foo to the /home/dir/of/user/foo |
* expand ~user/foo to the /home/dir/of/user/foo |
| * GLOB_BRACE: |
* GLOB_BRACE: |
| * expand {1,2}{a,b} to 1a 1b 2a 2b |
* expand {1,2}{a,b} to 1a 1b 2a 2b |
| |
* GLOB_PERIOD: |
| |
* allow metacharacters to match leading dots in filenames. |
| * gl_matchc: |
* gl_matchc: |
| * Number of matches in the current invocation of glob. |
* Number of matches in the current invocation of glob. |
| */ |
*/ |
| Line 695 glob3(Char *pathbuf, Char *pathend, Char |
|
| Line 697 glob3(Char *pathbuf, Char *pathend, Char |
|
| u_char *sc; |
u_char *sc; |
| Char *dc; |
Char *dc; |
| |
|
| /* Initial DOT must be matched literally. */ |
/* |
| if (dp->d_name[0] == DOT && *pattern != DOT) |
* Initial DOT must be matched literally, unless we have |
| continue; |
* GLOB_PERIOD set. |
| |
*/ |
| |
if ((pglob->gl_flags & GLOB_PERIOD) == 0) |
| |
if (dp->d_name[0] == DOT && *pattern != DOT) |
| |
continue; |
| /* |
/* |
| * The resulting string contains EOS, so we can |
* The resulting string contains EOS, so we can |
| * use the pathlim character, if it is the nul |
* use the pathlim character, if it is the nul |