bug-grep
[Top][All Lists]
Advanced

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

Bug#547693: -P gives more newlines


From: jidanni
Subject: Bug#547693: -P gives more newlines
Date: Mon, 21 Sep 2009 23:09:09 +0800

Package: grep
Version: 2.5.4-4
Severity: wishlist
X-debbugs-cc: address@hidden

grep -P seems to add newline here vs. perl.
$ LC_ALL=C /usr/bin/man perlfunc|perl -nwle 'print if /^\s+\?/'
               ?       Each letter may optionally be followed by a number 
giving a repeat count.  With all
               ?       The "a", "A", and "Z" types gobble just one value, but 
pack it as a string of length
               ?       Likewise, the "b" and "B" fields pack a string that many 
bits long.  Each character
               ?       The "h" and "H" fields pack a string that many nybbles 
(4-bit groups, representable
               ?       The "p" type packs a pointer to a null-terminated 
string.  You are responsible for
$ LC_ALL=C /usr/bin/man perlfunc|grep -P '^\s+\?'

               ?       Each letter may optionally be followed by a number 
giving a repeat count.  With all

               ?       The "a", "A", and "Z" types gobble just one value, but 
pack it as a string of length

               ?       Likewise, the "b" and "B" fields pack a string that many 
bits long.  Each character







reply via email to

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