glob.7: Clarify that syntactically incorrect patterns are left unchanged

Reported-by: Arnaud Gaillard <arnaud.mgaillard@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-08-09 17:24:11 +12:00
parent b6264ec7cd
commit 1bceaaee94
1 changed files with 2 additions and 2 deletions

View File

@ -93,8 +93,8 @@ Globbing is applied on each of the components of a pathname
separately.
A \(aq/\(aq in a pathname cannot be matched by a \(aq?\(aq or \(aq*\(aq
wildcard, or by a range like "\fI[.\-0]\fP".
A range cannot contain an
explicit \(aq/\(aq character; this would lead to a syntax error.
A range containing an explicit \(aq/\(aq character is syntactically incorrect.
(POSIX requires that syntactically incorrect patterns are left unchanged.)
If a filename starts with a \(aq.\(aq,
this character must be matched explicitly.