On Mon, Mar 27, 2023 at 6:15 AM Koen Claessen wrote:
> Running the command:
>
> echo a | grep -E -w '((()|a)|())*'
>
> does not terminate, and uses a LOT of processor time, for all versions of
> grep I have tried.
>
> This is the smallest case that could be found; simplifying anything in the
> i
Hi, everyone,
I have just noticed that `grep -P '[\d]' <<< 'asdf 1234 asdf'` does not work,
while `grep -P '[0-9]' <<< 'asdf 1234 asdf'` works as expected. When `\d` is
used outside of square brackets, it works as expected.
I have no idea why `[\d]` does not work, but after I open this SO questi
Hi.
Dimitry Andric wrote:
> Yes, it still reproduces when I configure the latest grep using
> --without-included-regex:
I assume you meant --with-included-regex?
If you really used --without-included-regex, that doesn't prove anything... :-)
It's interesting, as gawk uses the same regex, but