bug-bash
[Top][All Lists]
Advanced

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

Re: Some globstar patterns produce duplicate entries and a null filename


From: Chet Ramey
Subject: Re: Some globstar patterns produce duplicate entries and a null filename
Date: Mon, 10 Dec 2012 17:29:44 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2

On 12/5/12 3:17 AM, Roman Rakus wrote:

> Works well when used up to 2 levels of ** - ** and **/** is fixed.
> However still produce duplicates, when used more levels - **/**/**. Also
> produce duplicates for **/a/** form.

The next version will treat any sequence of **/** the same as **, so those
duplicates will be suppressed.

I'm going to argue that some duplicates are going to be expected when you
have patterns like **/a/** that can match the same directory name using
two different "paths," if you will.  Other shells that implement **, such
as ksh93, agree.  Imperfect, but there's not a good solution.

Chet



-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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