bug-bash
[Top][All Lists]
Advanced

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

Re: Incorrect example for `[[` command.


From: Dmitry Goncharov
Subject: Re: Incorrect example for `[[` command.
Date: Sat, 21 Sep 2019 14:55:09 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Sat, Sep 21, 2019 at 12:34:39PM +0300, Ilkka Virta wrote:
> [[:space:]]*?(a)b  isn't a well-defined POSIX ERE:
> 
>    9.4.6 EREs Matching Multiple Characters
> 
>    The behavior of multiple adjacent duplication symbols ( '+', '*', '?',
>    and intervals) produces undefined results.
> 
> https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/basedefs/V1_chap09.html

This is unfortunate.
*? and +? are widely used not greedy regexes.

regards, Dmitry



reply via email to

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