Revise manpage pattern section

This commit is contained in:
Andrea Mazzoleni 2026-05-05 12:27:19 +02:00
parent 6743b0067e
commit 0671e768c6
3 changed files with 12 additions and 12 deletions

View file

@ -1938,7 +1938,7 @@ not match directory separators. Classes support ranges and negation using
an exclamation mark.
.PP
The fundamental distinction to remember is that \`*\`, \`?\`, and character
classes all respect directory boundaries and only match within a single path
classes all respect directory boundaries and only match within a single path
component, while \`**\` is the only pattern that can match across directory
separators.
.PP
@ -1968,9 +1968,9 @@ Windows system directories, junctions, mount points, and other Windows
special directories are treated as files, meaning that to exclude
them, you must use a file rule, not a directory one.
.PP
If the file name contains a \`*\`, \`?\`, \`[\`,
or \`]\` character, you must escape it to avoid having it interpreted as a
globbing character. In Unix, the escape character is \`\\\`; in Windows, it is \`^\`.
If the file name contains a \`*\`, \`?\`, \`[\`, or \`]\` character, you must
escape it to avoid having it interpreted as a globbing character.
In Unix, the escape character is \`\\\`; in Windows, it is \`^\`.
When the pattern is on the command line, you must double the escape
character to avoid having it interpreted by the command shell.
.PP