Subject: Re: replacement for bc(1), dc(1), diff(1), and diff(3)
To: None <>
From: Joerg Sonnenberger <>
List: tech-userlevel
Date: 03/26/2005 16:13:06
On Fri, Mar 25, 2005 at 05:54:14PM +0100, Igor Sobrado wrote:
> My suggestion is replacing bc(1), dc(1), and the diffutils commands
> diff(1) and diff3(1) with the OpenBSD ones.  sdiff(1) has no
> replacement yet, though.  I do not know if this command is "required",
> if it can be easily replaced, or if it must stay as is.  It is not a
> licensing issue; in my humble opinion, there are good technical reasons
> (i.e., better end-user documentation, clean and well written source code,
> and better integration with the operating system source tree) for
> importing these commands from OpenBSD:

FYI, we are using the bc, dc and patch from OpenBSD in DragonFly.
I haven't checked the status of OpenBSD's diff in the last year,
but it was clearly inferior the last time I checked. The default
heuristic produced very long patches for a bunch of small changes
to a configure script and OpenBSD's diff was much slower.