emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#25655: closed (grep-2.28 is broken with multiple -


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#25655: closed (grep-2.28 is broken with multiple -e patterns)
Date: Wed, 08 Feb 2017 21:05:02 +0000

Your message dated Wed, 8 Feb 2017 13:04:25 -0800
with message-id <address@hidden>
and subject line Re: bug#25655: grep-2.28 is broken with multiple -e patterns
has caused the debbugs.gnu.org bug report #25655,
regarding grep-2.28 is broken with multiple -e patterns
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
25655: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25655
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: grep-2.28 is broken with multiple -e patterns Date: Wed, 8 Feb 2017 20:49:35 +0100
Hi,

we got a bug report a Gentoo [1] that grep-2.28 is broken when
searching for multiple patterns with -e:

grep-2.27:

  % echo ".tar" | grep -e "\.tar"; echo $?           
  .tar
  0

  % echo ".tar" | grep -e "\.tar" -e "\.tbz"; echo $?
  .tar
  0


grep-2.28:

   % echo ".tar" | grep -e "\.tar"; echo $?           
   .tar
   0

   % echo ".tar" | grep -e "\.tar" -e "\.tbz"; echo $?
   1


But this seems to be not the only issue:


echo "atbz" | grep -e "\.tar" -e ".tbz"

is matching "atbz"

echo ".tbz" | grep -e "\.tar" -e ".tbz"

matches ".tbz"

but

echo ".tar" | grep -e "\.tar" -e "tar"

only matches "ta".


We've identified commit 290ca116c9172d97b2b026951fac722d3bd3ced9 as the
one that introduced this regression

Kind regards
Lars

[1] https://bugs.gentoo.org/608644

-- 
Lars Wendler
Gentoo package maintainer
GPG: 21CC CF02 4586 0A07 ED93  9F68 498F E765 960E 9B39

Attention! New gpg key! See
https://www.gentoofan.org/blog/index.php?/archives/9-New-gpg-keys.html

Attachment: pgpvb61tOr3R_.pgp
Description: Digitale Signatur von OpenPGP


--- End Message ---
--- Begin Message --- Subject: Re: bug#25655: grep-2.28 is broken with multiple -e patterns Date: Wed, 8 Feb 2017 13:04:25 -0800 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 Thanks for reporting that. It's a reasonably serious bug. I installed the attached patch to fix it.

Attachment: 0001-grep-do-not-mishandle-.-in-multiple-patterns.patch
Description: Source code patch


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]