From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 15 13:59:20 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 752C2106564A for ; Sat, 15 Mar 2008 13:59:20 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from smtp.ht-systems.ru (mr0.ht-systems.ru [78.110.50.55]) by mx1.freebsd.org (Postfix) with ESMTP id 2DB0E8FC23 for ; Sat, 15 Mar 2008 13:59:19 +0000 (UTC) (envelope-from stas@ht-systems.ru) Received: from [78.110.49.49] (helo=quasar.ht-systems.ru) by smtp.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1JaWur-0003H1-Ba; Sat, 15 Mar 2008 16:59:17 +0300 Received: by quasar.ht-systems.ru (Postfix, from userid 1024) id 481D67D1125; Sat, 15 Mar 2008 16:59:16 +0300 (MSK) Date: Sat, 15 Mar 2008 16:59:16 +0300 From: Stanislav Sedov To: Steven Kreuzer Message-ID: <20080315135916.GH68662@dracon.ht-systems.ru> References: <20080314231404.GB99765@scruffy.exit2shell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080314231404.GB99765@scruffy.exit2shell.com> Organization: The FreeBSD Project X-Voice: +7 916 849 20 23 X-XMPP: ssedov@jabber.ru X-Yahoo: stanislav_sedov X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-University: MEPhI X-Mailer: carrier-pigeon X-Operating-System: FreeBSD quasar.ht-systems.ru 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE Cc: freebsd-hackers@freebsd.org Subject: Re: OpenBSD sdiff Question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Mar 2008 13:59:20 -0000 On Fri, Mar 14, 2008 at 07:14:04PM -0400 Steven Kreuzer mentioned: > Greetings- > > 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 > suggestions. > > 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. -- Stanislav Sedov ST4096-RIPE