From owner-freebsd-current Tue Sep 24 13:43:15 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41E1137B47C; Tue, 24 Sep 2002 13:43:11 -0700 (PDT) Received: from mail-green.research.att.com (mail-green.research.att.com [135.207.30.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D6E143E65; Tue, 24 Sep 2002 13:43:11 -0700 (PDT) (envelope-from fenner@research.att.com) Received: from alliance.research.att.com (alliance.research.att.com [135.207.26.26]) by mail-green.research.att.com (Postfix) with ESMTP id 9A9C31E053; Tue, 24 Sep 2002 16:43:10 -0400 (EDT) Received: from windsor.research.att.com (windsor.research.att.com [135.207.26.46]) by alliance.research.att.com (8.8.7/8.8.7) with ESMTP id QAA24228; Tue, 24 Sep 2002 16:43:10 -0400 (EDT) From: Bill Fenner Received: (from fenner@localhost) by windsor.research.att.com (8.8.8+Sun/8.8.5) id NAA26380; Tue, 24 Sep 2002 13:43:09 -0700 (PDT) Message-Id: <200209242043.NAA26380@windsor.research.att.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: peter@wemm.org Subject: Re: Who broke sort(1) ? Cc: tjr@FreeBSD.ORG, sgk@troutmask.apl.washington.edu, phk@FreeBSD.ORG, current@FreeBSD.ORG Date: Tue, 24 Sep 2002 13:43:08 -0700 Versions: dmail (solaris) 2.5a/makemail 2.9d Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Here's my suggested fix: stash% pwd /usr/src/gnu/usr.bin/sort stash% cvs diff -uN cvs diff: Diffing . Index: posixver.c =================================================================== RCS file: posixver.c diff -N posixver.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ posixver.c 24 Sep 2002 20:37:22 -0000 @@ -0,0 +1,8 @@ +/* + * Tell GNU sort(1) to implement the obsolete +1 -0 syntax even though + * it has been removed from the version of POSIX that the rest of + * the system conforms to. + */ +int posix2_version(void) { + return 0; +} If it's too confusing to have files with the same names in /usr/src/gnu/usr.bin/sort and /usr/src/contrib/gnu-sort/lib this one could be renamed (e.g. to "posixver-notreally.c") with a corresponding Makefile change. I am in the middle of a buildworld with this change. Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message