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

2023-04-02 Thread Dimitry Andric
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: >

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

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

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

2023-04-02 Thread Paul Eggert
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

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

2023-04-02 Thread Paul Eggert
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.

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

2023-04-02 Thread Paul Eggert
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

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

2023-04-02 Thread Carlo Arenas
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

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

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

bug#62639: RFE: Option to print file paths as hyperlinks

2023-04-02 Thread Nelson Benítez León
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