GNU bug report logs - #21414
-F string with tailing newline always matches

Previous Next

Package: grep;

Reported by: Ian Brown - HNAS <ian.brown <at> hds.com>

Date: Fri, 4 Sep 2015 15:34:03 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ian Brown - HNAS <ian.brown <at> hds.com>
To: 21414 <at> debbugs.gnu.org
Subject: bug#21414: -F string with tailing newline always matches 
Date: Fri, 4 Sep 2015 14:45:45 +0000
[Message part 1 (text/plain, inline)]
Grep version 2.20

When using the ouput of another command to pass match strings into grep using -F I was getting unexpected results as it was matching every line. If the terminating newline is removed the grep started to work again.

Easy to work around but this is different behaviour from 2.12 and may cause some scripts to fail.

Ian Brown (HDS)

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

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

Previous Next


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