From: Jim Meyering Date: Fri, 31 May 1996 03:07:45 +0000 (+0000) Subject: (limfield): #ifdef-out a block of code that makes X-Git-Tag: TEXTUTILS-1_16~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c467c0d22366740e5137dcb96e08add08a6778f;p=thirdparty%2Fcoreutils.git (limfield): #ifdef-out a block of code that makes GNU sort incompatible with Unix sort when a key-end spec refers to the N'th character in a field that has fewer than N characters. The POSIX spec doesn't appear to specify behavior for this case. From Karl Heuer. --- diff --git a/src/sort.c b/src/sort.c index 9130190538..733df0adfa 100644 --- a/src/sort.c +++ b/src/sort.c @@ -610,6 +610,36 @@ limfield (const struct line *line, const struct keyfield *key) ++ptr; } +#ifdef POSIX_UNSPECIFIED + /* The following block of code makes GNU sort incompatible with + standard Unix sort, so it's ifdef'd out for now. + The POSIX spec isn't clear on how to interpret this. + FIXME: request clarification. + + From: kwzh@gnu.ai.mit.edu (Karl Heuer) + Date: Thu, 30 May 96 12:20:41 -0400 + + [...]I believe I've found another bug in `sort'. + + $ cat /tmp/sort.in + a b c 2 d + pq rs 1 t + $ textutils-1.15/src/sort +0.6 -0.7