Hello,
While using GNU grep v3.4 in an Ubuntu 20.04 userspace running on top of
Win10 WSL (yeah, i know... but also checked in other envs) i discovered
what seems like an obvious bug (if i'm not mistaken).
The bug:
-
me@host:~$ echo 'y' |grep -E '^x+x+x+x+y$'
y
me@host:~$ echo 'x
While using GNU grep v3.4 in an Ubuntu 20.04 userspace running on top of
Win10 WSL (yeah, i know... but also checked in other envs) i discovered
what seems like an obvious bug (if i'm not mistaken).
The bug:
-
me@host:~$ echo 'y' |grep -E '^x+x+x+x+y$'
y
me@host:~$ echo 'xxxy' |g
I can reproduce this is gawk. :-(
It's a bug somewhere in the dfa matcher. When I export GAWK_NO_DFA=1
to bypass the dfa matcher, only y matches.
Hope this helps,
Arnold
Gonzalo Padrino wrote:
> Hello,
>
> While using GNU grep v3.4 in an Ubuntu 20.04 userspace running on top of
> Win10
On Sat, Oct 31, 2020 at 9:17 AM Gonzalo Padrino
wrote:
> While using GNU grep v3.4 in an Ubuntu 20.04 userspace running on top of
> Win10 WSL (yeah, i know... but also checked in other envs) i discovered
> what seems like an obvious bug (if i'm not mistaken).
> The bug:
> -
> me@host:~$ ech
On Sat, Oct 31, 2020 at 9:18 AM Gonzalo Padrino wrote:
> While using GNU grep v3.4 in an Ubuntu 20.04 userspace running on top of
> Win10 WSL (yeah, i know... but also checked in other envs) i discovered
> what seems like an obvious bug (if i'm not mistaken).
>
> The bug:
> -
> me@host:~$