From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 14 23:45:02 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 05046106567A for ; Fri, 14 Mar 2008 23:45:02 +0000 (UTC) (envelope-from skreuzer@exit2shell.com) Received: from scruffy.exit2shell.com (64.147.114.188.static.nyinternet.net [64.147.114.188]) by mx1.freebsd.org (Postfix) with ESMTP id B60128FC2B for ; Fri, 14 Mar 2008 23:45:01 +0000 (UTC) (envelope-from skreuzer@exit2shell.com) Received: from scruffy.exit2shell.com (64.147.114.188.static.nyinternet.net [64.147.114.188]) by scruffy.exit2shell.com (8.14.1/8.14.1) with ESMTP id m2ENE5Sn004812 for ; Fri, 14 Mar 2008 19:14:10 -0400 (EDT) (envelope-from skreuzer@scruffy.exit2shell.com) Received: (from skreuzer@localhost) by scruffy.exit2shell.com (8.14.1/8.14.1/Submit) id m2ENE4aE004811 for freebsd-hackers@freebsd.org; Fri, 14 Mar 2008 19:14:04 -0400 (EDT) (envelope-from skreuzer) Date: Fri, 14 Mar 2008 19:14:04 -0400 From: Steven Kreuzer To: freebsd-hackers@freebsd.org Message-ID: <20080314231404.GB99765@scruffy.exit2shell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: 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: Fri, 14 Mar 2008 23:45:02 -0000 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. -- Steven Kreuzer http://www.exit2shell.com/~skreuzer