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.




Reply via email to