forked from factor/factor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
USING: help.markup help.syntax io.pathnames sequences strings ; | ||
|
||
IN: globs | ||
|
||
HELP: glob | ||
{ $values | ||
glob: string | ||
files: sequence | ||
} | ||
{ $description | ||
Search the \ current-directory using a { $snippet "glob" } pattern. This | ||
supports some wildcard characters: | ||
|
||
{ $table | ||
{ { $snippet "*" } "Matches multiple characters" } | ||
{ { $snippet "?" } "Matches a single character" } | ||
{ { $snippet "[]" } "Matches a specified group of characters" } | ||
} | ||
} ; | ||
|
||
HELP: rglob | ||
{ $values | ||
glob: string | ||
files: sequence | ||
} | ||
{ $description | ||
A " recursive " version of \ glob . This is equivalent to { $snippet "**/glob" } . | ||
} ; | ||
|
||
ARTICLE: "globs" "Globs" | ||
|
||
The { $vocab-link "globs" } vocabulary is useful for finding pathnames of | ||
files matching a specified pattern according to the typical rules used by the | ||
Unix shell, although results are returned in arbitrary order. No tilde | ||
expansion is done, but { $snippet "*" } , { $snippet "?" } , and | ||
character ranges expressed with { $snippet "[]" } will be correctly | ||
matched. | ||
|
||
The \ current-directory is searched, and these are the typical entry-points: | ||
|
||
{ $subsections | ||
glob | ||
rglob | ||
} ; | ||
|
||
ABOUT: "globs" |