[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep: obscure bug with fgrep -x and long lines
From: |
Stepan Kasal |
Subject: |
Re: grep: obscure bug with fgrep -x and long lines |
Date: |
Tue, 11 Feb 2003 15:34:00 +0100 |
User-agent: |
Mutt/1.2.5.1i |
Hello,
On Mon, Feb 10, 2003 at 08:00:07PM -0500, Steve Summit wrote:
> fgrep -x "`cat pat`" badfile
>
> prints nothing and exits with a status of 1. Yet the same
> pattern is also line 3 of goodfile, and for that file, it works
> properly.
OK, I've found the problem and fixed it.
When you try to remember 256 in an unsigned char variable, you
get 0 sometimes...
I'm attaching a patch---it's relative to the current version, ie. 2.5.1
but it may work with older version---I've not tested it.
Thank you again for your bug report.
With kind regards,
Stepan Kasal
grep-2.5.1-kwset.patch
Description: Text document