Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refer to glob(7) for metachar listing in spec.md
Browse files Browse the repository at this point in the history
Rather than listing all the rules, just refer the reader to the man
page.  Although brace expansion isn't part of the standard rules, we
still support it through glob(3), so make a note.
dmnks committed Aug 8, 2022

Verified

This commit was signed with the committer’s verified signature.
renovate-bot Mend Renovate
1 parent 7bf73ed commit 0286967
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/manual/spec.md
Original file line number Diff line number Diff line change
@@ -651,13 +651,11 @@ Supported modifiers are:

### Shell Globbing

The usual rules for shell globbing apply. Metacharacters can be escaped by
prefixing them with a backslash (`\`). A backslash or percent sign can be
escaped with an extra `\` or `%`, respectively. Spaces are used to separate
file names and must be escaped by enclosing the file name in quotes.

The metacharacters supported are wildcards (`*` and `?`), square brackets
(`[]`), and curly braces (`{}`).
The usual rules for shell globbing apply (see `glob(7)`), including brace
expansion. Metacharacters can be escaped by prefixing them with a backslash
(`\`). A backslash or percent sign can be escaped with an extra `\` or `%`,
respectively. Spaces are used to separate file names and must be escaped by
enclosing the file name in quotes.

For example:

0 comments on commit 0286967

Please sign in to comment.