bug#62483: echo a | grep -E -w '((()|a)|())*' # does not terminate

2023-04-01 Thread Jim Meyering
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

bug#62605: `[\d]` does not work with PCRE

2023-04-01 Thread Tukusej’s Sirs via Bug reports for GNU grep
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

bug#62483: echo a | grep -E -w '((()|a)|())*' # does not terminate

2023-04-01 Thread arnold
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