Bug in fgrep using the -f option and long pattern list.

Hi there.

I noticed a bug in fgrep (SunOS 5.9 Generic_118558-30 sun4u sparc SUNW,Sun-Fire-V890).

This one bothers me a bit:

If I use a fgrep -f and giving a long list of patterns (here 17000 stored in a file, each line 1 pattern, Size 300kb) the result is sometimes (not eachtime) faulty.

I would like to ask If somebody have noticed this, too. Or maybe somebody feels able to replicate that bug. Or to ask If there is a patch available.

(I am searching for Routernames/Interfacenames pairs in my Syslog-File. And yes we do a lot of syslogging.)

Thanks,

Bo

[608 byte] By [Bo99a] at [2007-11-27 9:33:30]
# 1
The gnu utilities usually handle large buffer sizes more gracefully. So try gnu grep.
robert.cohena at 2007-7-12 22:55:16 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...