Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14484

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

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Extglob *?(a)b matches every string
Date 2018-08-14 10:12 -0400
Message-ID <mailman.5091.1534255964.1292.bug-bash@gnu.org> (permalink)
References <1895851534048016@iva7-7c2970ec7645.qloud-c.yandex.net>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Extglob *?(a)b matches every string Chet Ramey <chet.ramey@case.edu> - 2018-08-14 10:12 -0400

csiph-web