On Tue, Sep 27, 2016, at 09:41 AM, L. A. Walsh wrote: > > > Ian Kelling wrote: > > The docs currently say: > > > > "When a pattern is used for filename expansion, the character '.' at > > the start of a filename or immediately following a slash must be matched > > explicitly, unless the shell option 'dotglob' is set. > > > > The last bit should be changed to say > > > > unless the shell option 'dotglob' is set and the file is not named '.' > > or '..'. > > > --- > But that's not what is supposed to happen. It doesn't say it > matches the > filename with "." [or ".."], but the *start* of a filename or after a > "/". > I.e., interactive shell usage should not include > ".profile/.foo/.anything" in > such expansions.
I'm not sure your reading it quite right. Chet gets it. Another way of explaining it is: dotglob does not affect the files "." and "..".