Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Sep 2004 15:16:19 -0400
From:      Brian Fundakowski Feldman <green@freebsd.org>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: diff(1)
Message-ID:  <20040917191619.GS36708@green.homeunix.org>
In-Reply-To: <20040917191240.GR36708@green.homeunix.org>
References:  <16715.4611.108597.354107@piglet.timing.com> <20040917.130549.22012205.imp@bsdimp.com> <20040917191240.GR36708@green.homeunix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 17, 2004 at 03:12:40PM -0400, Brian Fundakowski Feldman wrote:
> On Fri, Sep 17, 2004 at 01:05:49PM -0600, M. Warner Losh wrote:
> > In message: <16715.4611.108597.354107@piglet.timing.com>
> >             Ben Mesander <ben@timing.com> writes:
> > :   I've recently done a port of OpenBSD diff(1) to FreeBSD for
> > : licensing reasons (the diff(1) in base FreeBSD is GPL licensed),
> > : OpenBSD has a BSD-style license).
> > : 
> > :   I was going to work with Warner to see if I could get this into
> > : the ports collection. But we were also curious to see if other
> > : people thought it might be OK to replace the GNU diff in base
> > : with the OpenBSD diff.
> > : 
> > :   For reference, here is the OpenBSD diff source and manpage:
> > : http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/diff/
> > : 
> > :   There would also have to be some integration with other programs
> > : (such as diff3(1)).
> > 
> > Needless to say, I think this is an excellent idea.  I'm happy to do
> > the leg work to get this into the tree, so that's not an issue. :-)
> > 
> > OpenBSD's diff is much smaller than gnu's.  It seems to use less
> > memory as well for many operations.  Its speed seems about the same.
> > Most of these impressions are based on light testing, so YMMV.
> > 
> > This would be in keeping with our march to get rid of other gnu
> > products in our tree: awk, sort, etc.
> 
> So if we get rid of three GNU, can we get one SCO (cscope)?

http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/grep/

> But seriously, is this better than ports/textproc/freegrep which
> "should" have been the FreeBSD grep years ago?

P.S. Totally kicking myself for not noticing you didn't explicitly
     mention the OpenBSD grep among your short list of GNU programs.
     So anyway, OpenBSD diff, OpenBSD grep, didn't someone write
     a FreeBSD-destined sort(1), too?

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040917191619.GS36708>