|
From: | L A Walsh |
Subject: | Re: . and .. are included where they were excluded before |
Date: | Tue, 26 Jan 2021 18:20:17 -0800 |
User-agent: | Thunderbird 2.0.0.24 (Windows/20100228) |
On 2021/01/26 09:08, Chet Ramey wrote:
That's the real question: whether or not `.' should match @(?|.?), even when dotglob is enabled (and yes, both patterns have to be in there). There isn't really any other. Since it doesn't match ? when dotglob is enabled, there's an obvious inconsistency there, and that's what I'll look at.
---- I don't see it as being inconsistent, since shopt -u dotglob will match the literal 1st byte (dot). From there we are no longer looking at "default behavior for "." to match '?' but at normal "glob-RE" rules. .foo won't be match by ????, but will be matched by .??? Note, it's not just about . and .., all files starting with 1 or 2 dots.
[Prev in Thread] | Current Thread | [Next in Thread] |