bug-grep
[Top][All Lists]
Advanced

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

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


From: Balazs Kezes
Subject: bug#20974: Weird newline matching behaviour in --null-data mode
Date: Fri, 3 Jul 2015 17:59:19 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

Hello!

I'm running into issues with grep in -z mode. I've managed to minimize
it into this:

        $ seq 2 | grep --null-data --quiet '[12].2' ; echo $?
        0
        $ seq 2 | grep --null-data --quiet '[1-2].2' ; echo $?
        1

I'd expect the two expressions to mean the same. I've tried this with
the latest version built from the official sources, 2.21. I've also
found [1] which might be related but it wasn't updated for almost 2
years. Or is this expected?

Thanks!


[1] http://savannah.gnu.org/bugs/?40009

-- 
Balazs





reply via email to

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