[Top][All Lists]

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

bug#20974: Weird newline matching behaviour in --null-data mode

From: Norihiro Tanaka
Subject: bug#20974: Weird newline matching behaviour in --null-data mode
Date: Sat, 04 Jul 2015 13:40:55 +0900

On Fri, 3 Jul 2015 20:10:08 -0700
Jim Meyering <address@hidden> wrote:

> Oh, nice! I see that Paul Eggert has just fixed this with
> the following patch:
>   http://git.sv.gnu.org/cgit/grep.git/commit/?id=0e8fda0d880cccd0
> So I'm closing this ticket.

Paul's fix is very nice, I could not found it.

However, following case is not fixed yet.  Not only '.' but also hat
list (e.g. [^a]) should match newline with -z.  So we need clear

$ seq 2 | LC_ALL=C grep --null-data '[1-2][^a][1-2]'
$ seq 2 | LC_ALL=en_US.iso88591 grep --null-data '[1-2][^a][1-2]'

Attachment: 0001-grep-z-a-now-consistently-matches-newline.patch
Description: Text document

reply via email to

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