bug#44351: Bug in grep v3.2 onwards in regular expression matching

2020-10-31 Thread Gonzalo Padrino
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

bug#44352: Incorrect matches for some ERE

2020-10-31 Thread Gonzalo Padrino
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

bug#44351: Bug in grep v3.2 onwards in regular expression matching

2020-10-31 Thread arnold
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

bug#44351: Bug in grep v3.2 onwards in regular expression matching

2020-10-31 Thread Jim Meyering
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

bug#44352: Incorrect matches for some ERE

2020-10-31 Thread Jim Meyering
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:~$