Ah sorry, I did indeed rebuild grep with --with-included-regex, and for
debugging purposes added CFLAGS="-O0 -g".
In any case, the problematic code is both in glibc and grep, as I
believe these are originating from the same source.
-Dimitry
> On 2 Apr 2023, at 08:52, arn...@skeeve.com wrote:
>
OK, thanks!
Dimitry Andric wrote:
> Ah sorry, I did indeed rebuild grep with --with-included-regex, and for
> debugging purposes added CFLAGS="-O0 -g".
>
> In any case, the problematic code is both in glibc and grep, as I
> believe these are originating from the same source.
>
> -Dimitry
>
> > O
On 2023-04-01 23:52, arn...@skeeve.com wrote:
It's interesting, as gawk uses the same regex, but with different flags.
Also, GNU grep -w passes the following more-complicated regexp to dfaparse:
(^|[^[:alnum:]_]))|a)|())*)([^[:alnum:]_]|$)
and quite possibly the bug is related to this e
Thanks for reporting the bug with [\d]. This is a known bug and we're
working on it; please see:
https://bugs.gnu.org/62552
I merged the two bug reports.
Also, please see the recent thread about this in the grep-devel mailing
list, e.g.:
https://lists.gnu.org/r/grep-devel/2023-04/msg4.html
On Sun, Apr 2, 2023 at 11:30 AM Paul Eggert wrote:
>
> Also, GNU grep -w passes the following more-complicated regexp to dfaparse:
but AFAIK `-w` is not necessary to trigger it, as the following also
infloops in Fedora Rawhide
$ echo a | grep -E '((()|a)|())+'
interestingly; the loop is broke
On Sun, Apr 2, 2023 at 1:25 PM Carlo Arenas wrote:
> On Sun, Apr 2, 2023 at 11:30 AM Paul Eggert wrote:
> >
> > Also, GNU grep -w passes the following more-complicated regexp to dfaparse:
>
> but AFAIK `-w` is not necessary to trigger it, as the following also
> infloops in Fedora Rawhide
>
> $
Most terminals have landed support for hyperlinks:
https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
It would be nice if GNU Grep added an option for that so it could
print file paths as hyperlinks, that way the user could eg. configure
it such that clicking on a match would open