Subject: Likely bug in grep for file without an ending newline

From: Abramo Bagnara <[email-masked]>
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