Your message dated Sun, 12 Feb 2023 19:32:10 +0000
with message-id <[email protected]>
and subject line Bug#1029235: fixed in grep 3.6-1+deb11u1
has caused the Debian Bug report #1029235,
regarding grep: sometimes mistakenly matches lines when last of multiple 
patterns includes backref
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1029235: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029235
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: grep
Version: 2.27-2
Severity: normal

There seems to be a problem with beginning/end-of-line anchors in regex
containing back-references:

$ cat words
ana
deed
ill
stats

Using -x to match whole line works:

$ egrep -x '(.?)(.?).?\2\1' words
ana
deed
stats

Using explicit anchors emits false positives:

$ egrep   '^(.?)(.?).?\2\1$' words
ana
deed
ill     <<<
stats

On the other hand, colouring the output shows that grep somewhat knows its
mistake:

$ egrep --color '^(.?)(.?).?\2\1$' words
ana     (coloured)
deed    (coloured)
ill
stats   (coloured)

-- System Information:
Debian Release: 9.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-9-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C 
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages grep depends on:
ii  dpkg          1.18.25
ii  install-info  6.3.0.dfsg.1-1+b2
ii  libc6         2.24-11+deb9u4
ii  libpcre3      2:8.39-3

grep recommends no packages.

Versions of packages grep suggests:
ii  libpcre3  2:8.39-3

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: grep
Source-Version: 3.6-1+deb11u1
Done: Santiago Ruano Rincón <[email protected]>

We believe that the bug you reported is fixed in the latest version of
grep, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Ruano Rincón <[email protected]> (supplier of updated grep package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 25 Jan 2023 09:23:20 +0100
Source: grep
Architecture: source
Version: 3.6-1+deb11u1
Distribution: bullseye
Urgency: medium
Maintainer: Anibal Monsalve Salazar <[email protected]>
Changed-By: Santiago Ruano Rincón <[email protected]>
Closes: 1029235
Changes:
 grep (3.6-1+deb11u1) bullseye; urgency=medium
 .
   * Fix sometimes mistakenly matches lines when last of multiple patterns
     includes backref (Closes: #1029235)
   * debian/salsa-ci.yml set RELEASE: bullseye
Checksums-Sha1:
 e861915e612460eb9ecde45f44f4d5893aa44cf6 1648 grep_3.6-1+deb11u1.dsc
 91dfe78659c564b49cceb5a7221701909c325956 18600 grep_3.6-1+deb11u1.debian.tar.xz
 8545d8bbae88ecc7799bc66ef8807f01eeb5fa72 6021 
grep_3.6-1+deb11u1_amd64.buildinfo
Checksums-Sha256:
 420cc5ac729e1f31b8c8c6fff183542aa0627cc142c8c24a90ea6c6ea8c403f7 1648 
grep_3.6-1+deb11u1.dsc
 39c333035364b387e3dc437f6197e5054bb247607a897ed56495a87f169397f4 18600 
grep_3.6-1+deb11u1.debian.tar.xz
 976d61aecaaefbc5b46584164d650ac46024bec2a4f320dc565c8bd7d18f1926 6021 
grep_3.6-1+deb11u1_amd64.buildinfo
Files:
 980f6ac75ef1316e067e4b02713a5d45 1648 utils required grep_3.6-1+deb11u1.dsc
 600b991b57ae293b5961a6fede34a914 18600 utils required 
grep_3.6-1+deb11u1.debian.tar.xz
 c23dcc6dbd8cbe9fd7d64ef5d2248661 6021 utils required 
grep_3.6-1+deb11u1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQRZVjztY8b+Ty43oH1itBCJKh26HQUCY9+EuwAKCRBitBCJKh26
HXu1AP4gOCdNozgWs7Q6wE2nV/ySlR2NKDFtOfTxVF8/sEZjRwEA7HI5+Vs+opkD
aeSOkOsoHW85juK7ra+zNynkgVj5hAA=
=kiDt
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to