GNU bug report logs - #22655
grep-2.21 (and git master): --null-data and ranges work in an odd way (-P works fine)

Previous Next

Package: grep;

Reported by: Sergei Trofimovich <slyfox <at> gentoo.org>

Date: Sat, 13 Feb 2016 23:24:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Aaron Crane <grep <at> aaroncrane.co.uk>
Cc: 22655 <at> debbugs.gnu.org, Stephane Chazelas <stephane.chazelas <at> gmail.com>
Subject: bug#22655: grep -Pz '^' now fails!
Date: Sat, 19 Nov 2016 15:12:41 -0800
Aaron Crane wrote:
> I'm not sure it's ideal to use the Perl documentation as
> a comprehensive guide to PCRE:

Unfortunately libpcre does not document the regular expression syntax it 
supports. Neither does the grep manual, for 'grep -P'. And as you've mentioned, 
the Perl manual isn't a reliable source for libpcre either. So users of 'grep 
-P' cannot rely on any documentation for behavior; it's an unwritten tradition 
instead.

Long ago when a friend told me "When you're telling someone else where you plan 
to throw the Frisbee, don't say anything more specific than 'Watch this!'" 
That's 'grep -P' in a nutshell.




This bug report was last modified 8 years and 190 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.