GNU bug report logs - #16871
problems about matching newline (with -z)

Previous Next

Package: grep;

Reported by: Stephane Chazelas <stephane.chazelas <at> gmail.com>

Date: Tue, 25 Feb 2014 07:33:01 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Stephane Chazelas <stephane.chazelas <at> gmail.com>
To: 16871 <at> debbugs.gnu.org
Subject: bug#16871: Acknowledgement (problems about matching newline (with -z))
Date: Tue, 25 Feb 2014 11:32:43 +0000
Also:

$ printf 'a\nb\0' | grep -z 'a$'
$ printf 'a\nb\0' | grep -zP 'a$'
a
b
$ printf 'a\nb\0' | grep -zxP a
a
b

Why use PCRE_MULTILINE here?




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

Previous Next


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