From 1bceaaee94a9c44111e74ef39ee2bce20cc48d16 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 9 Aug 2016 17:24:11 +1200 Subject: [PATCH] glob.7: Clarify that syntactically incorrect patterns are left unchanged Reported-by: Arnaud Gaillard Signed-off-by: Michael Kerrisk --- man7/glob.7 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man7/glob.7 b/man7/glob.7 index 41c582ce0..4314a45d8 100644 --- a/man7/glob.7 +++ b/man7/glob.7 @@ -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.