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


Groups > gnu.bash.bug > #15395 > unrolled thread

Re: Incorrect example for `[[` command.

Started byDmitry Goncharov <dgoncharov@users.sf.net>
First post2019-09-21 14:55 -0400
Last post2019-09-21 14:55 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Incorrect example for `[[` command. Dmitry Goncharov <dgoncharov@users.sf.net> - 2019-09-21 14:55 -0400

#15395 — Re: Incorrect example for `[[` command.

FromDmitry Goncharov <dgoncharov@users.sf.net>
Date2019-09-21 14:55 -0400
SubjectRe: Incorrect example for `[[` command.
Message-ID<mailman.741.1569092119.2190.bug-bash@gnu.org>
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

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web