GNU bug report logs - #22071
incorrect behaviour for inverted matches with -l on empty files

Previous Next

Package: grep;

Reported by: Mark Wotton <mwotton <at> gmail.com>

Date: Tue, 1 Dec 2015 22:47:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mark Wotton <mwotton <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: incorrect behaviour for inverted matches with -l on empty files
Date: Tue, 01 Dec 2015 22:36:10 +0000
[Message part 1 (text/plain, inline)]
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"' ?

cheers
mark
[Message part 2 (text/html, inline)]

This bug report was last modified 9 years and 171 days ago.

Previous Next


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