GNU bug report logs - #16965
Likely bug in grep for file without an ending newline

Previous Next

Package: grep;

Reported by: Abramo Bagnara <abramo.bagnara <at> gmail.com>

Date: Fri, 7 Mar 2014 22:45:02 UTC

Severity: normal

Tags: notabug

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: Abramo Bagnara <abramo.bagnara <at> gmail.com>
To: jim <at> meyering.net, mark.veltzer <at> gmail.com, bug-grep <at> gnu.org
Subject: Likely bug in grep for file without an ending newline
Date: Fri, 07 Mar 2014 23:38:12 +0100
$ echo -n test > file
$ fgrep e file
test
$ fgrep -v q file
test
$ cat file
test$

My expectation would be that file is not altered by grep if all lines
matches pattern.

Is current grep behavior the expected one?


-- 
Abramo Bagnara




This bug report was last modified 11 years and 136 days ago.

Previous Next


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