Subject: Re: bug#22071: incorrect behaviour for inverted matches with -l on empty files

From: Santiago Ruano Rincón <[email-masked]>
Date: Wed, 2 Dec 2015 13:56:48 +0100

El 01/12/15 a las 22:36, Mark Wotton escribió:
> orb ➜  ~/src/grep-2.22  touch empty
> orb ➜  ~/src/grep-2.22  ./src/grep -v -l "hi there" ./empty
> 
> gives empty output. Surely the file "empty" should match 'does not match
> "hi there"' ?
       -v, --invert-match
              Invert the sense of matching, to select non-matching lines.

I think this is not a bug because there isn't non-matching line in an empty file.

Cheers,

-- Santiago