Strange results from using grep

Michael Abbott michael at araneidae.co.uk
Tue Oct 3 13:55:07 BST 2006


On Tue, 3 Oct 2006, John Rochester wrote:
> On a hunch I tried adding a blank line to the pattern file when I tested 
> this. On os x I got the expected result - every line matched, while on 
> linux it behaved as if the blank line wasn't there.

Odd.

I can't confirm this.  I get the expected results:

 	$ echo testing | grep -f /dev/null
 	$ echo testing | grep -f <(echo)
 	testing
 	$

on all the following:

 	$ uname -sr

 	Linux 2.6.9-34.ELsmp
 	Darwin 8.7.0
 	FreeBSD 4.11-RELEASE-p11





More information about the Ukfreebsd mailing list