[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep 2.5d -f option problem
From: |
Alain Magloire |
Subject: |
Re: grep 2.5d -f option problem |
Date: |
Tue, 6 Mar 2001 13:16:59 -0500 (EST) |
>
> Here is a new and interesting datum. There are 17 references to
> stunnel and 3 to rshd in the short messages file, but look:
>
> # echo stunnel >test2
> # ./egrep -vncf test2 messages
> 83
> # echo rshd >>test2
> # ./egrep -vncf test2 messages
> 83
> # echo rshd >test2
> # ./egrep -vncf test2 messages
> 97
> # echo stunnel >>test2
> # ./egrep -vncf test2 messages
> 97
>
> It looks to me as though only the first key of the file is getting
> used.
>
Oops! (Red face)
Try this and let me know, if it cures it for you I'll make the
appropriate changes with the proper Credit in the next Beta 2.5e
Cc: address@hidden
others may have seen the propble.
Index: search.c
===================================================================
RCS file: /cvs/grep/src/search.c,v
retrieving revision 1.23
diff -c -p -r1.23 search.c
*** search.c 2001/03/04 05:39:41 1.23
--- search.c 2001/03/06 18:36:35
*************** Ecompile (char const *motif, size_t tota
*** 327,333 ****
pcount++;
motif = sep;
! } while (sep && total == 0);
}
static size_t
--- 327,333 ----
pcount++;
motif = sep;
! } while (sep && total != 0);
}
static size_t