In <[EMAIL PROTECTED]> Dag-Erling Smorgrav <[EMAIL PROTECTED]> wrote:
> Jamie Howard ([EMAIL PROTECTED]), with a little help from yours
> truly, has written a BSD-licensed version of grep(1) which has all the
> functionality of our current (GPLed) implementation, plus a little
> more, in one seventh the source code and one fourth the binary code.
> What's more, the code is actually possible for mere mortals to read
> and understand.

> The source code is available for download from freefall:

>  <URL:http://www.freebsd.org/~des/software/grep-0.7.tar.gz>

> I move that we replace GNU grep in our source tree with this
> implementation, once it's been reviewed by all concerned parties.

        Unfortunately abovementioned grep-0.7.tar.gz is
broken.

        After making it on the CURRENT system I can only
see:

        grep: filename: Undefined error: 0

for every filename.

        This caused by very "unusual" return values for
'grep_open' (and other '..._open') function which is declared
as 'int' (and return int result) and compared with NULL ;-(

        I prefer not to include the patch for this because
I am uncompatible with such trics as:

        return ((f = fopen(path, mode)) != NULL) - 1;

        N.Dudorov


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to