Re: . and .. are included where they were excluded before
From:
Chet Ramey
Subject:
Re: . and .. are included where they were excluded before
Date:
Tue, 26 Jan 2021 15:54:29 -0500
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.1
On 1/26/21 2:34 PM, gregrwm wrote:
you're calling .. an explicit match to .?
Yes: the leading `.' is explicitly included.
i'd interpret explicit match to mean .. wouldn't match anything other than
itself (notwithstanding it's been otherwise for over a decade)
That's not a glob pattern. There are patterns that can match `.' and `..';
`.*' still matches both, for instance.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/