bug-bash
[Top][All Lists]
Advanced

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

Re: Extglob *?(a)b matches every string


From: Chet Ramey
Subject: Re: Extglob *?(a)b matches every string
Date: Tue, 14 Aug 2018 10:12:29 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 8/12/18 12:26 AM, Mark Polyakov wrote:

>    Bash Version: 4.3
>    Patch Level: 46
>    Release Status: release
>    A
>    Description:
>    A A A  An extglob pattern such as `*?(anything)something_else` will
>    match any string, even though it should only match strings that end
>    with something_else. I suspect there are a number of other extglob
>    patterns involving ?() that are buggy but have not tested extensively.
>    This *only* happens on 4.3. I have also tested 4.0, 4.2, and 4.4, all
>    of which parse the glob correctly.

Thanks for the report. As you noted, this was fixed in bash-4.4.

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