[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: !(.pattern) can match . and .. if dotglob is enabled

From: Chet Ramey
Subject: Re: !(.pattern) can match . and .. if dotglob is enabled
Date: Sat, 19 Jun 2021 14:05:04 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 6/17/21 3:53 PM, Nora Platiel wrote:
On 2021-06-15 10:19 Chet Ramey wrote:
Or rather,
to never generate . or .. as a pathname component via globbing.

I don't think it's useful -- and it's certainly incompatible -- to make
an explicit pattern like `.?' ignore `..'.

I think it would be most useful. A better design.

It's far too late to relitigate that decision, which dates back to at
least the original Bourne shell and probably much earlier (I do not
have earlier versions available for testing right now).

``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/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]