[Bug 2007155] [NEW] grep: sometimes mistakenly matches lines when last of multiple patterns includes backref
Santiago Ruano Rincon
2007155 at bugs.launchpad.net
Mon Feb 13 14:38:31 UTC 2023
Public bug reported:
This bug was introduced upstream with grep 3.4. Originally reported in
Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029235#19
On an ubuntu focal machine:
echo 'Total failed: 2 (1 ignored)' | grep -e '^Total failed: 0$' -e '^Total failed: \([0-9]*\) (\1 ignored)$'
Total failed: 2 (1 ignored)
A fixed grep doesn't match the line.
This has been fixed in debian unstable with 3.8-4, and in bullseye with
3.6-1+deb11u1.
I've tested the attached patch in ubuntu focal (grep 3.4)
** Affects: grep (Ubuntu)
Importance: Undecided
Status: New
** Patch added: "1029235-grep-bug-backref-in-last-of-multiple-patterns.patch"
https://bugs.launchpad.net/bugs/2007155/+attachment/5646814/+files/1029235-grep-bug-backref-in-last-of-multiple-patterns.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grep in Ubuntu.
https://bugs.launchpad.net/bugs/2007155
Title:
grep: sometimes mistakenly matches lines when last of multiple
patterns includes backref
Status in grep package in Ubuntu:
New
Bug description:
This bug was introduced upstream with grep 3.4. Originally reported in
Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029235#19
On an ubuntu focal machine:
echo 'Total failed: 2 (1 ignored)' | grep -e '^Total failed: 0$' -e '^Total failed: \([0-9]*\) (\1 ignored)$'
Total failed: 2 (1 ignored)
A fixed grep doesn't match the line.
This has been fixed in debian unstable with 3.8-4, and in bullseye
with 3.6-1+deb11u1.
I've tested the attached patch in ubuntu focal (grep 3.4)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grep/+bug/2007155/+subscriptions
More information about the foundations-bugs
mailing list