OpenBSD sdiff Question
stas at FreeBSD.org
Sat Mar 15 13:59:20 UTC 2008
On Fri, Mar 14, 2008 at 07:14:04PM -0400 Steven Kreuzer mentioned:
> I am currently working on replacing the GNU version of sdiff with a version
> of sdiff that was released into the public domain and is used in OpenBSD
> Xin LI has been guiding me along with the project and he suggested I post
> here to see what you guys think.
> I achieve 100% compatability with the GNU version, I need to add
> -v/--version and the issue I ran into is that since this program would
> become part of the base os, what exactly should be displayed.
> My idea is to simply print __FreeBSD_version but I am open to other
> For reference:
> $ sdiff -v
> sdiff (GNU diffutils) 2.8.7
> Written by Thomas Lord.
> Copyright (C) 2004 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> And my port from OpenBSD:
> $ ./sdiff -v
> sdiff (BSD diffutils) 602111
> Written by Raymond Lai.
> This work has been released into the public domain.
Do we really need to display program version on -v switch? BSD has no
tradition to keep separate program version, it's just a part of an
entire OS. I believe we might just abandone this switch.
More information about the freebsd-hackers