-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Globbing: Add globbing documentation
Fixes #396
- Loading branch information
Showing
2 changed files
with
32 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,31 @@ | ||
# Glob - Extended unix style pathname expansion | ||
|
||
In coala, files and directories are specified by file name. To allow input of | ||
multiple files without requiring a large number of filenames, coala supports | ||
a number of wildcards. These are based on the unix-style glob syntax and they | ||
are *not* the same as regular expressions. | ||
|
||
## Syntax | ||
|
||
The special characters used in shell-style wildcards are: | ||
|
||
``` | ||
+-----------------+-----------------------------------------------------------+ | ||
| PATTERN | MEANING | | ||
+=================+===========================================================+ | ||
| '[seq]' | Matches any character in seq. Cannot be empty. Any special| | ||
| | character looses its special meaning in a set. | | ||
+-----------------+-----------------------------------------------------------+ | ||
| '[!seq]' | Matches any character not in seq. Cannot be empty. Any | | ||
| | special character looses its special meaning in a set. | | ||
+-----------------+-----------------------------------------------------------+ | ||
| '(seq_a|seq_b)' | Matches either sequence_a or sequence_b as a whole. More | | ||
| | than two or just one sequence can be given. | | ||
+-----------------+-----------------------------------------------------------+ | ||
| '?' | Matches any single character. | | ||
+-----------------+-----------------------------------------------------------+ | ||
| '*' | Matches everything but the directory separator | | ||
+-----------------+-----------------------------------------------------------+ | ||
| '**' | Matches everything. | | ||
+-----------------+-----------------------------------------------------------+ | ||
``` |
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