bug-grep
[Top][All Lists]
Advanced

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

[bug #25765] grep -P regexp also prints the line before the match


From: Paolo Bonzini
Subject: [bug #25765] grep -P regexp also prints the line before the match
Date: Fri, 04 Dec 2009 19:09:48 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091105 Fedora/3.5.5-1.fc12 Firefox/3.5.5

Follow-up Comment #1, bug #25765 (project grep):

Reproducible, matches can span multiple lines:

$ echo $'anb' | ./grep -P '^(|.*[^0])b'
a
b
$ echo $'anb' | ./grep -cP '^(|.*[^0])b'
1


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?25765>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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