Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Sep 2002 13:43:08 -0700
From:      Bill Fenner <fenner@research.att.com>
To:        peter@wemm.org
Cc:        tjr@FreeBSD.ORG, sgk@troutmask.apl.washington.edu, phk@FreeBSD.ORG, current@FreeBSD.ORG
Subject:   Re: Who broke sort(1) ?
Message-ID:  <200209242043.NAA26380@windsor.research.att.com>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209242043.NAA26380>