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: Zev Weiss <zev <at> bewilderbeest.net>
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 01:37:18 -0800
[Message part 1 (text/plain, inline)]
Zev Weiss wrote:
> I see 'reflags' being tested in Pexecute(), but I don't see it getting set anywhere

Oops, that somehow got lost during merging. Thanks for catching that. Omitting 
the initialization caused hurt performance due to a failure to use 
PCRE_MULTILINE but did not cause a correctness bug, so the tests didn't catch 
it. Fixed with the attached patch.
[0001-grep-fix-performance-typo-with-P.patch (text/x-diff, attachment)]

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.