From unknown Sat Aug 16 16:08:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5958: Sort-8.4 bug Resent-From: Santiago Rodriguez Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Fri, 16 Apr 2010 12:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 5958 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 5958@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.127142002127893 (code B ref -1); Fri, 16 Apr 2010 12:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Apr 2010 12:13:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2kQW-0007Fm-B0 for submit@debbugs.gnu.org; Fri, 16 Apr 2010 08:13:41 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2jGN-000694-5U for submit@debbugs.gnu.org; Fri, 16 Apr 2010 06:59:07 -0400 Received: from lists.gnu.org ([199.232.76.165]:53516) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O2jGI-0004EB-4A for submit@debbugs.gnu.org; Fri, 16 Apr 2010 06:59:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2jGH-0003NY-A0 for bug-coreutils@gnu.org; Fri, 16 Apr 2010 06:59:01 -0400 Received: from [140.186.70.92] (port=55968 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2jGF-0003M4-Dn for bug-coreutils@gnu.org; Fri, 16 Apr 2010 06:59:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DEAR_SOMETHING, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2jGD-0003RN-UR for bug-coreutils@gnu.org; Fri, 16 Apr 2010 06:58:59 -0400 Received: from relay.fi.upm.es ([138.100.8.77]:57087 helo=relay4.fi.upm.es) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2jGD-0003RE-NN for bug-coreutils@gnu.org; Fri, 16 Apr 2010 06:58:57 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by relay4.fi.upm.es (Postfix) with ESMTP id D308E3049C for ; Fri, 16 Apr 2010 12:58:56 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at efiltro.fi.upm.es Received: from haya.datsi.fi.upm.es (haya.datsi.fi.upm.es [138.100.9.188]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by relay4.fi.upm.es (Postfix) with ESMTP id BFF96303D9 for ; Fri, 16 Apr 2010 12:58:56 +0200 (CEST) Received: from [138.100.9.33] (tajinaste.datsi.fi.upm.es [138.100.9.33]) by haya.datsi.fi.upm.es (Postfix-TLS) with ESMTPS id 1C6BA64CB for ; Fri, 16 Apr 2010 12:58:56 +0200 (CEST) Message-ID: <4BC842EF.1000901@fi.upm.es> Date: Fri, 16 Apr 2010 12:58:55 +0200 From: Santiago Rodriguez Organization: Facultad de Informatica User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.3 (----) X-Mailman-Approved-At: Fri, 16 Apr 2010 08:13:37 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) Dear sirs, I think I have found a bug in sort coreutils command. When I type sort -T /tmp +1 -2 +2rn -3 +0 -1< Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Fri, 16 Apr 2010 14:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5958 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Santiago Rodriguez Cc: 5958@debbugs.gnu.org Received: via spool by 5958-submit@debbugs.gnu.org id=B5958.127142714631225 (code B ref 5958); Fri, 16 Apr 2010 14:13:01 +0000 Received: (at 5958) by debbugs.gnu.org; 16 Apr 2010 14:12:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2mHR-00087a-7d for submit@debbugs.gnu.org; Fri, 16 Apr 2010 10:12:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2mHN-00087T-Q8 for 5958@debbugs.gnu.org; Fri, 16 Apr 2010 10:12:23 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3GECFNo006451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 16 Apr 2010 10:12:15 -0400 Received: from [10.11.8.194] (vpn-8-194.rdu.redhat.com [10.11.8.194]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3GECEsX010149; Fri, 16 Apr 2010 10:12:14 -0400 Message-ID: <4BC87044.9050206@redhat.com> Date: Fri, 16 Apr 2010 08:12:20 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 References: <4BC842EF.1000901@fi.upm.es> In-Reply-To: <4BC842EF.1000901@fi.upm.es> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1DF8728B499BE3B3E434330A" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-Spam-Score: -8.3 (--------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -9.4 (---------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1DF8728B499BE3B3E434330A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 04/16/2010 04:58 AM, Santiago Rodriguez wrote: > Dear sirs, >=20 > I think I have found a bug in sort coreutils command. When I type >=20 > sort -T /tmp +1 -2 +2rn -3 +0 -1< perra/S perra 2.200000 > perro/PS perra 4.400000 > EOF Thanks for the report; however, this is not a bug. The syntax 'sort +1' is obsolete. You are better off rewriting your scripts to conform to POSIX: sort -T /tmp -k2,3 -k3,4rn -k1,2 And in doing so, you've just made it apparent why sort behaved correctly, but differently than you expected. Basically, you have requested that your first sort key be the combination of the second and third field. And since 'perra 2.200000' sorts before 'perra 4.400000', there is no need for sort to fall back on the second and third key specifications. You can get the desired results with: sort -T /tmp -k2,2 -k3,3rn -k1,1 or the obsolete: sort -T /tmp +1 -1 +2rn -2 +0 -0 Meanwhile, we have a patch brewing (but not in 8.4) that allows sort to output some debug hints, to actually show which portions of each line were used in the various comparisons. I'm hoping we can get that patch polished soon, because it would have been very helpful in demonstrating my reply. >=20 > The result is the same. If I make the same executions with sort 5.0 it > works properly. Actually, sort 5.0 was buggy in this area. Sort 8.4 has a number of bug fixes for bad behavior in sort 5.0. --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig1DF8728B499BE3B3E434330A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkvIcEYACgkQ84KuGfSFAYDiwACfSmcMj0Mf4r0nsAzTpLYbc4dT JqgAn3+IFB85EdyMa2zjR4Jba5u6Y78r =EhM0 -----END PGP SIGNATURE----- --------------enig1DF8728B499BE3B3E434330A-- From unknown Sat Aug 16 16:08:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5958: Sort-8.4 bug References: <4BC842EF.1000901@fi.upm.es> Resent-From: pacman@kosh.dhis.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Sat, 17 Apr 2010 00:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5958 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: eblake@redhat.com (Eric Blake) Cc: Santiago Rodriguez , 5958@debbugs.gnu.org Received: via spool by 5958-submit@debbugs.gnu.org id=B5958.127146300218491 (code B ref 5958); Sat, 17 Apr 2010 00:10:03 +0000 Received: (at 5958) by debbugs.gnu.org; 17 Apr 2010 00:10:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2vbk-0004oC-TV for submit@debbugs.gnu.org; Fri, 16 Apr 2010 20:10:01 -0400 Received: from c-98-226-122-10.hsd1.in.comcast.net ([98.226.122.10] helo=kosh.dhis.org) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O2val-0004nU-NL for 5958@debbugs.gnu.org; Fri, 16 Apr 2010 20:09:00 -0400 Received: (qmail 15278 invoked by uid 1000); 17 Apr 2010 00:08:55 -0000 Message-ID: <20100417000855.15277.qmail@kosh.dhis.org> From: pacman@kosh.dhis.org Date: Fri, 16 Apr 2010 19:08:55 -0500 (GMT+5) In-Reply-To: <4BC87044.9050206@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: 3.5 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Eric Blake writes: > > On 04/16/2010 04:58 AM, Santiago Rodriguez wrote: > > Dear sirs, > >=20 > > I think I have found a bug in sort coreutils command. When I type > >=20 > > sort -T /tmp +1 -2 +2rn -3 +0 -1< > perra/S perra 2.200000 > > perro/PS perra 4.400000 > > EOF > > Thanks for the report; however, this is not a bug. > > The syntax 'sort +1' is obsolete. You are better off rewriting your [...] Content analysis details: (3.5 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.9 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [98.226.122.10 listed in zen.spamhaus.org] 0.9 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [98.226.122.10 listed in dnsbl.sorbs.net] 1.6 DEAR_SOMETHING BODY: Contains 'Dear (something)' 0.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60% [score: 0.5000] 0.1 RDNS_DYNAMIC Delivered to trusted network by host with dynamic-looking rDNS X-Mailman-Approved-At: Fri, 16 Apr 2010 20:10:00 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 3.5 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Eric Blake writes: > > On 04/16/2010 04:58 AM, Santiago Rodriguez wrote: > > Dear sirs, > >=20 > > I think I have found a bug in sort coreutils command. When I type > >=20 > > sort -T /tmp +1 -2 +2rn -3 +0 -1< > perra/S perra 2.200000 > > perro/PS perra 4.400000 > > EOF > > Thanks for the report; however, this is not a bug. > > The syntax 'sort +1' is obsolete. You are better off rewriting your [...] Content analysis details: (3.5 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.9 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [98.226.122.10 listed in zen.spamhaus.org] 0.9 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [98.226.122.10 listed in dnsbl.sorbs.net] 1.6 DEAR_SOMETHING BODY: Contains 'Dear (something)' 0.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60% [score: 0.5000] 0.1 RDNS_DYNAMIC Delivered to trusted network by host with dynamic-looking rDNS Eric Blake writes: > > On 04/16/2010 04:58 AM, Santiago Rodriguez wrote: > > Dear sirs, > >=20 > > I think I have found a bug in sort coreutils command. When I type > >=20 > > sort -T /tmp +1 -2 +2rn -3 +0 -1< > perra/S perra 2.200000 > > perro/PS perra 4.400000 > > EOF > > Thanks for the report; however, this is not a bug. > > The syntax 'sort +1' is obsolete. You are better off rewriting your When you pry it from my cold dead hands... > scripts to conform to POSIX: > > sort -T /tmp -k2,3 -k3,4rn -k1,2 I don't think that's a correct equivalence. Traditional options +1 -2 should mean the same as -k2,2 (i.e. the -2 means the key ends *before* field 2, counting from 0). Instead of comparing new coreutils to old coreutils, how about reading some documentation that actually specifies the +pos1 -pos2 syntax, and is not written from the "why won't those old people die off already" point of view? For example the V7 man page: http://www.freebsd.org/cgi/man.cgi?query=sort&apropos=0&sektion=0&manpath=Unix+Seventh+Edition&format=ascii Or something more recent, from Solaris, that provides a precise formula for translating +pos1 -pos2 into -k options: http://www.freebsd.org/cgi/man.cgi?query=sort&apropos=0&sektion=0&manpath=SunOS+5.10&format=ascii -- Alan Curry From unknown Sat Aug 16 16:08:34 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: srodri@datsi.fi.upm.es Subject: bug#5958 closed by Jim Meyering (Re: bug#5958: Sort-8.4 bug) Message-ID: References: <87aat1i1v2.fsf@meyering.net> <4BC842EF.1000901@fi.upm.es> X-Gnu-PR-Message: they-closed 5958 X-Gnu-PR-Package: coreutils Reply-To: 5958@debbugs.gnu.org Date: Sun, 18 Apr 2010 08:48:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1271580481-6803-1" This is a multi-part message in MIME format... ------------=_1271580481-6803-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the coreutils package: #5958: Sort-8.4 bug It has been closed by Jim Meyering . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Jim Meyering by replying to this email. --=20 5958: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5958 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1271580481-6803-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 5958-done) by debbugs.gnu.org; 18 Apr 2010 08:47:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3QA2-0001lV-FE for submit@debbugs.gnu.org; Sun, 18 Apr 2010 04:47:26 -0400 Received: from smtp6-g21.free.fr ([212.27.42.6]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3Q9z-0001lQ-HV for 5958-done@debbugs.gnu.org; Sun, 18 Apr 2010 04:47:25 -0400 Received: from smtp6-g21.free.fr (localhost [127.0.0.1]) by smtp6-g21.free.fr (Postfix) with ESMTP id DD803E08089; Sun, 18 Apr 2010 10:47:16 +0200 (CEST) Received: from mx.meyering.net (mx.meyering.net [82.230.74.64]) by smtp6-g21.free.fr (Postfix) with ESMTP id D5662E080D2; Sun, 18 Apr 2010 10:47:13 +0200 (CEST) Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id 6355899C; Sun, 18 Apr 2010 10:47:13 +0200 (CEST) From: Jim Meyering To: pacman@kosh.dhis.org Subject: Re: bug#5958: Sort-8.4 bug In-Reply-To: <20100417000855.15277.qmail@kosh.dhis.org> (pacman@kosh.dhis.org's message of "Fri, 16 Apr 2010 19:08:55 -0500 (GMT+5)") References: <4BC842EF.1000901@fi.upm.es> <20100417000855.15277.qmail@kosh.dhis.org> Date: Sun, 18 Apr 2010 10:47:13 +0200 Message-ID: <87aat1i1v2.fsf@meyering.net> Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 5958-done Cc: Santiago Rodriguez , 5958-done@debbugs.gnu.org, Eric Blake X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) pacman@kosh.dhis.org wrote: > Eric Blake writes: >> On 04/16/2010 04:58 AM, Santiago Rodriguez wrote: >> > I think I have found a bug in sort coreutils command. When I type >> > >> > sort -T /tmp +1 -2 +2rn -3 +0 -1<> > perra/S perra 2.200000 >> > perro/PS perra 4.400000 >> > EOF >> >> Thanks for the report; however, this is not a bug. >> >> The syntax 'sort +1' is obsolete. You are better off rewriting your > > When you pry it from my cold dead hands... It has been declared "obsolete" for a good reason: it is ambiguous. If you require that syntax, use some other sort program. ------------=_1271580481-6803-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 Apr 2010 12:13:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2kQW-0007Fm-B0 for submit@debbugs.gnu.org; Fri, 16 Apr 2010 08:13:41 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2jGN-000694-5U for submit@debbugs.gnu.org; Fri, 16 Apr 2010 06:59:07 -0400 Received: from lists.gnu.org ([199.232.76.165]:53516) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O2jGI-0004EB-4A for submit@debbugs.gnu.org; Fri, 16 Apr 2010 06:59:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2jGH-0003NY-A0 for bug-coreutils@gnu.org; Fri, 16 Apr 2010 06:59:01 -0400 Received: from [140.186.70.92] (port=55968 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2jGF-0003M4-Dn for bug-coreutils@gnu.org; Fri, 16 Apr 2010 06:59:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DEAR_SOMETHING, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2jGD-0003RN-UR for bug-coreutils@gnu.org; Fri, 16 Apr 2010 06:58:59 -0400 Received: from relay.fi.upm.es ([138.100.8.77]:57087 helo=relay4.fi.upm.es) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2jGD-0003RE-NN for bug-coreutils@gnu.org; Fri, 16 Apr 2010 06:58:57 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by relay4.fi.upm.es (Postfix) with ESMTP id D308E3049C for ; Fri, 16 Apr 2010 12:58:56 +0200 (CEST) X-Virus-Scanned: by amavisd-new using ClamAV at efiltro.fi.upm.es Received: from haya.datsi.fi.upm.es (haya.datsi.fi.upm.es [138.100.9.188]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by relay4.fi.upm.es (Postfix) with ESMTP id BFF96303D9 for ; Fri, 16 Apr 2010 12:58:56 +0200 (CEST) Received: from [138.100.9.33] (tajinaste.datsi.fi.upm.es [138.100.9.33]) by haya.datsi.fi.upm.es (Postfix-TLS) with ESMTPS id 1C6BA64CB for ; Fri, 16 Apr 2010 12:58:56 +0200 (CEST) Message-ID: <4BC842EF.1000901@fi.upm.es> Date: Fri, 16 Apr 2010 12:58:55 +0200 From: Santiago Rodriguez Organization: Facultad de Informatica User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: bug-coreutils@gnu.org Subject: Sort-8.4 bug Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 16 Apr 2010 08:13:37 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: srodri@datsi.fi.upm.es List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) Dear sirs, I think I have found a bug in sort coreutils command. When I type sort -T /tmp +1 -2 +2rn -3 +0 -1< Resent-From: pacman@kosh.dhis.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 20 Apr 2010 00:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5958 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: eblake@redhat.com (Eric Blake) Cc: Santiago Rodriguez , 5958@debbugs.gnu.org, Jim Meyering Received: via spool by 5958-submit@debbugs.gnu.org id=B5958.127172429228894 (code B ref 5958); Tue, 20 Apr 2010 00:45:02 +0000 Received: (at 5958) by debbugs.gnu.org; 20 Apr 2010 00:44:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O41a8-0007Vz-6G for submit@debbugs.gnu.org; Mon, 19 Apr 2010 20:44:52 -0400 Received: from c-98-226-122-10.hsd1.in.comcast.net ([98.226.122.10] helo=kosh.dhis.org) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O41a6-0007Vu-1j for 5958@debbugs.gnu.org; Mon, 19 Apr 2010 20:44:50 -0400 Received: (qmail 3938 invoked by uid 1000); 20 Apr 2010 00:44:45 -0000 Message-ID: <20100420004445.3937.qmail@kosh.dhis.org> From: pacman@kosh.dhis.org Date: Mon, 19 Apr 2010 19:44:45 -0500 (GMT+5) In-Reply-To: <4BCCD3DC.4010507@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Eric Blake writes: > > I am not blowing off this bug report - I agree with you that we need > better documentation. However, I don't have the resources to do all the It's not just a documentation problem. The behavior in older versions of coreutils was compatible with other members of the unix family; the current version is not. That's a regression and should be recognized as such, even if no version of POSIX ever specified the behavior. [...] Content analysis details: (1.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.9 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [98.226.122.10 listed in dnsbl.sorbs.net] 0.9 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [98.226.122.10 listed in zen.spamhaus.org] 0.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60% [score: 0.4984] 0.1 RDNS_DYNAMIC Delivered to trusted network by host with dynamic-looking rDNS -0.2 AWL AWL: From: address is in the auto white-list X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Eric Blake writes: > > I am not blowing off this bug report - I agree with you that we need > better documentation. However, I don't have the resources to do all the It's not just a documentation problem. The behavior in older versions of coreutils was compatible with other members of the unix family; the current version is not. That's a regression and should be recognized as such, even if no version of POSIX ever specified the behavior. [...] Content analysis details: (1.6 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.9 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [98.226.122.10 listed in zen.spamhaus.org] 0.9 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [98.226.122.10 listed in dnsbl.sorbs.net] -0.2 BAYES_40 BODY: Bayesian spam probability is 20 to 40% [score: 0.3587] 0.1 RDNS_DYNAMIC Delivered to trusted network by host with dynamic-looking rDNS -0.0 AWL AWL: From: address is in the auto white-list Eric Blake writes: > > I am not blowing off this bug report - I agree with you that we need > better documentation. However, I don't have the resources to do all the It's not just a documentation problem. The behavior in older versions of coreutils was compatible with other members of the unix family; the current version is not. That's a regression and should be recognized as such, even if no version of POSIX ever specified the behavior. > legwork myself (in particular, access to the POSIX 1992 standard would > be a big help), so in open source fashion, I'm asking for help. And > since it seems to be your itch, the best you can do is scratch it by > providing that help, rather than criticizing the fact that we are trying > to spread the work load. I didn't send the initial bug report, but it did catch my interest. "sort +1" is for me a finger-macro that I'll never stop using no matter how many people declare it obsolete. "sort +1 -2" not so much. The hunt for old POSIX versions is a dead end. Instead, I'll try to find exactly when this stopped working. Maybe it was an unintended side effect of a change elsewhere. -- Alan Curry From unknown Sat Aug 16 16:08:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5958: Sort-8.4 bug References: <4BC842EF.1000901@fi.upm.es> Resent-From: "Alan Curry" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 20 Apr 2010 08:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5958 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: eblake@redhat.com (Eric Blake) Cc: Santiago Rodriguez , 5958@debbugs.gnu.org, Jim Meyering Received: via spool by 5958-submit@debbugs.gnu.org id=B5958.127175265910200 (code B ref 5958); Tue, 20 Apr 2010 08:38:02 +0000 Received: (at 5958) by debbugs.gnu.org; 20 Apr 2010 08:37:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O48xe-0002eT-Ty for submit@debbugs.gnu.org; Tue, 20 Apr 2010 04:37:39 -0400 Received: from c-98-226-122-10.hsd1.in.comcast.net ([98.226.122.10] helo=kosh.dhis.org) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O48xc-0002eN-VD for 5958@debbugs.gnu.org; Tue, 20 Apr 2010 04:37:37 -0400 Received: (qmail 27379 invoked by uid 1000); 20 Apr 2010 08:37:33 -0000 Message-ID: <20100420083733.27378.qmail@kosh.dhis.org> From: "Alan Curry" Date: Tue, 20 Apr 2010 03:37:33 -0500 (GMT+5) In-Reply-To: <4BCCD3DC.4010507@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: A full investigation has revealed: This bug was introduced between coreutils 7.1 and 7.2, here: >commit 224a69b56b716f57e3a018af5a9b9379f32da3fc >Author: =?UTF-8?Q?P=C3=A1draig?= Brady >Date: Tue Feb 24 08:37:18 2009 +0000 > > sort: Fix two bugs with determining the end of field > > * src/sort.c: When no specific number of chars to skip > is specified for the end field, always skip the whole field. > Also never include leading spaces from next field. > * tests/misc/sort: Add 2 new tests for these cases. > * NEWS: Mention this bug fix. > * THANKS: Add bug reporter. > Reported by Davide Canova. [...] Content analysis details: (1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.9 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [98.226.122.10 listed in dnsbl.sorbs.net] 0.9 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [98.226.122.10 listed in zen.spamhaus.org] 0.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60% [score: 0.5000] 0.1 RDNS_DYNAMIC Delivered to trusted network by host with dynamic-looking rDNS -0.7 AWL AWL: From: address is in the auto white-list X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: A full investigation has revealed: This bug was introduced between coreutils 7.1 and 7.2, here: >commit 224a69b56b716f57e3a018af5a9b9379f32da3fc >Author: =?UTF-8?Q?P=C3=A1draig?= Brady >Date: Tue Feb 24 08:37:18 2009 +0000 > > sort: Fix two bugs with determining the end of field > > * src/sort.c: When no specific number of chars to skip > is specified for the end field, always skip the whole field. > Also never include leading spaces from next field. > * tests/misc/sort: Add 2 new tests for these cases. > * NEWS: Mention this bug fix. > * THANKS: Add bug reporter. > Reported by Davide Canova. [...] Content analysis details: (1.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.9 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [98.226.122.10 listed in zen.spamhaus.org] 0.9 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [98.226.122.10 listed in dnsbl.sorbs.net] 0.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60% [score: 0.5000] 0.1 RDNS_DYNAMIC Delivered to trusted network by host with dynamic-looking rDNS -0.4 AWL AWL: From: address is in the auto white-list A full investigation has revealed: This bug was introduced between coreutils 7.1 and 7.2, here: >commit 224a69b56b716f57e3a018af5a9b9379f32da3fc >Author: Pádraig Brady >Date: Tue Feb 24 08:37:18 2009 +0000 > > sort: Fix two bugs with determining the end of field > > * src/sort.c: When no specific number of chars to skip > is specified for the end field, always skip the whole field. > Also never include leading spaces from next field. > * tests/misc/sort: Add 2 new tests for these cases. > * NEWS: Mention this bug fix. > * THANKS: Add bug reporter. > Reported by Davide Canova. In the diff of that commit, an eword++ was removed from the case 'k' section of option parsing, where it did not affect traditional options, and added to the limfield() function, where it takes effect regardless of how fields were specified. So it fixed a -k option parsing bug and added a traditional option parsing bug. And on the way, it removed a comment describing the correct correspondence between the two! The following patch moves the eword++ back to its old location (under the case 'k') but keeps the new test for when it should be applied (echar==0, whether by explicit .0 on the field end specifier or by omission of the field end specifier). This allows the -k bug that was fixed to stay fixed, while undoing the damage to the traditional options. With this patch applied, all the sort tests in make check still pass, including the tests added in the above commit, which I take as a sign that I got it right. And the traditional options are back to working again. I'd suggest the following new test case: printf "a b c\na c b\n" | sort +0 -1 +2 should output "a c b\na b c\n" I'd put that in the diff too, but the organization of tests/misc/sort is baffling. --- coreutils-8.4.orig/src/sort.c 2010-04-20 02:45:35.000000000 -0500 +++ coreutils-8.4/src/sort.c 2010-04-20 03:12:57.000000000 -0500 @@ -1460,9 +1460,6 @@ char *ptr = line->text, *lim = ptr + line->length - 1; size_t eword = key->eword, echar = key->echar; - if (echar == 0) - eword++; /* Skip all of end field. */ - /* Move PTR past EWORD fields or to one past the last byte on LINE, whichever comes first. If there are more than EWORD fields, leave PTR pointing at the beginning of the field having zero-based index, @@ -3424,6 +3421,8 @@ s = parse_field_count (s + 1, &key->echar, N_("invalid number after `.'")); } + if (key->echar == 0) + key->eword++; /* Skip all of end field. */ s = set_ordering (s, key, bl_end); } if (*s) OK now let's not say I haven't done any legwork. -- Alan Curry From unknown Sat Aug 16 16:08:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5958: Sort-8.4 bug Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 20 Apr 2010 12:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5958 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Alan Curry Cc: Santiago Rodriguez , 5958@debbugs.gnu.org, Eric Blake , Jim Meyering Received: via spool by 5958-submit@debbugs.gnu.org id=B5958.127176541218008 (code B ref 5958); Tue, 20 Apr 2010 12:11:02 +0000 Received: (at 5958) by debbugs.gnu.org; 20 Apr 2010 12:10:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4CHL-0004gP-H3 for submit@debbugs.gnu.org; Tue, 20 Apr 2010 08:10:11 -0400 Received: from mail1.slb.deg.dub.stisp.net ([84.203.253.98]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O4CHJ-0004gK-9p for 5958@debbugs.gnu.org; Tue, 20 Apr 2010 08:10:10 -0400 Received: (qmail 45442 invoked from network); 20 Apr 2010 12:10:02 -0000 Received: from unknown (HELO ?192.168.2.25?) (84.203.137.218) by mail1.slb.deg.dub.stisp.net with SMTP; 20 Apr 2010 12:10:02 -0000 Message-ID: <4BCD995B.4040300@draigBrady.com> Date: Tue, 20 Apr 2010 13:08:59 +0100 From: =?UTF-8?Q?P=C3=A1draig?= Brady User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 References: <4BC842EF.1000901@fi.upm.es> <20100420083733.27378.qmail@kosh.dhis.org> In-Reply-To: <20100420083733.27378.qmail@kosh.dhis.org> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) On 20/04/10 09:37, Alan Curry wrote: > A full investigation has revealed: > > This bug was introduced between coreutils 7.1 and 7.2, here: > >> commit 224a69b56b716f57e3a018af5a9b9379f32da3fc >> Author: Pádraig Brady >> Date: Tue Feb 24 08:37:18 2009 +0000 >> >> sort: Fix two bugs with determining the end of field >> >> * src/sort.c: When no specific number of chars to skip >> is specified for the end field, always skip the whole field. >> Also never include leading spaces from next field. >> * tests/misc/sort: Add 2 new tests for these cases. >> * NEWS: Mention this bug fix. >> * THANKS: Add bug reporter. >> Reported by Davide Canova. > > In the diff of that commit, an eword++ was removed from the case 'k' section > of option parsing, where it did not affect traditional options, and added to > the limfield() function, where it takes effect regardless of how fields were > specified. > > So it fixed a -k option parsing bug and added a traditional option parsing > bug. Sigh. I didn't fully understand/consider the obsolete syntax when doing that. I'll look at you patch tonight and push it in. cheers, Pádraig. From unknown Sat Aug 16 16:08:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5958: Sort-8.4 bug Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 20 Apr 2010 16:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5958 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Alan Curry Cc: Santiago Rodriguez , 5958@debbugs.gnu.org, Eric Blake , Jim Meyering Received: via spool by 5958-submit@debbugs.gnu.org id=B5958.127178138332142 (code B ref 5958); Tue, 20 Apr 2010 16:37:02 +0000 Received: (at 5958) by debbugs.gnu.org; 20 Apr 2010 16:36:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4GQw-0008MM-HO for submit@debbugs.gnu.org; Tue, 20 Apr 2010 12:36:22 -0400 Received: from mail1.slb.deg.dub.stisp.net ([84.203.253.98]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O4GQu-0008ME-RD for 5958@debbugs.gnu.org; Tue, 20 Apr 2010 12:36:21 -0400 Received: (qmail 14557 invoked from network); 20 Apr 2010 16:36:15 -0000 Received: from unknown (HELO ?192.168.2.25?) (84.203.137.218) by mail1.slb.deg.dub.stisp.net with SMTP; 20 Apr 2010 16:36:15 -0000 Message-ID: <4BCDD7BF.4010303@draigBrady.com> Date: Tue, 20 Apr 2010 17:35:11 +0100 From: =?UTF-8?Q?P=C3=A1draig?= Brady User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 References: <4BC842EF.1000901@fi.upm.es> <20100420083733.27378.qmail@kosh.dhis.org> In-Reply-To: <20100420083733.27378.qmail@kosh.dhis.org> X-Enigmail-Version: 1.0.1 Content-Type: multipart/mixed; boundary="------------070200060104050705090509" X-Spam-Score: -1.8 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) This is a multi-part message in MIME format. --------------070200060104050705090509 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit On 20/04/10 09:37, Alan Curry wrote: > --- coreutils-8.4.orig/src/sort.c 2010-04-20 02:45:35.000000000 -0500 > +++ coreutils-8.4/src/sort.c 2010-04-20 03:12:57.000000000 -0500 > @@ -1460,9 +1460,6 @@ > char *ptr = line->text, *lim = ptr + line->length - 1; > size_t eword = key->eword, echar = key->echar; > > - if (echar == 0) > - eword++; /* Skip all of end field. */ > - > /* Move PTR past EWORD fields or to one past the last byte on LINE, > whichever comes first. If there are more than EWORD fields, leave > PTR pointing at the beginning of the field having zero-based index, > @@ -3424,6 +3421,8 @@ > s = parse_field_count (s + 1, &key->echar, > N_("invalid number after `.'")); > } > + if (key->echar == 0) > + key->eword++; /* Skip all of end field. */ > s = set_ordering (s, key, bl_end); > } > if (*s) I've changed it around in the attached patch so that we consistently use zero based limits throughout the code. I'll push this later on tonight unless there are objections. cheers, Pádraig. --------------070200060104050705090509 Content-Type: text/x-patch; name="sort-key-limit.diff" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="sort-key-limit.diff" >From a76f1ef9c137ab55a5796dcb8dd548e3998101ce Mon Sep 17 00:00:00 2001 From: =?utf-8?q?P=C3=A1draig=20Brady?= Date: Tue, 20 Apr 2010 16:25:55 +0100 Subject: [PATCH] sort: fix parsing of end field in obsolescent key formats MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit This regression was introduced in commit 224a69b5, 2009-02-24, "sort: Fix two bugs with determining the end of field". The specific regression being that we include 1 field too many when an end field is specified using obsolescent key syntax (+POS -POS). * src/sort.c (main): When processing obsolescent format key specifications, normalize eword to a zero based count when no specific end char is given for an end field. This matches what's done when keys are specified with -k. * tests/misc/sort: Add a few more tests for the obsolescent key formats, with test 07i being the particular failure addressed by this change. * THANKS: Add Alan Curry who precisely identified the issue. * NEWS: Mention the fix. Reported by Santiago Rodríguez --- NEWS | 4 ++++ THANKS | 1 + src/sort.c | 10 ++++++++++ tests/misc/sort | 6 ++++++ 4 files changed, 21 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index 867589c..32ea392 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,10 @@ GNU coreutils NEWS -*- outline -*- handled correctly, including multi byte locales with the caveat that multi byte characters are matched case sensitively. + sort again handles obsolescent key formats (+POS -POS) correctly. + Previously if -POS was specified, 1 field too many was used in the sort. + [bug introduced in coreutils-7.2] + ** New features join now accepts the --header option, to treat the first line of each diff --git a/THANKS b/THANKS index fad308a..2ea6801 100644 --- a/THANKS +++ b/THANKS @@ -17,6 +17,7 @@ Adrian Bunk bunk@stusta.de AIDA Shinra shinra@j10n.org Akim Demaille demaille@inf.enst.fr Alain Magloire alain@qnx.com +Alan Curry pacman@kosh.dhis.org Alan Iwi iwi@atm.ox.ac.uk Albert Chin-A-Young china@thewrittenword.com Albert Hopkins ahopkins@dynacare.com diff --git a/src/sort.c b/src/sort.c index d619c60..d0e0b66 100644 --- a/src/sort.c +++ b/src/sort.c @@ -3389,6 +3389,16 @@ main (int argc, char **argv) if (*s == '.') s = parse_field_count (s + 1, &key->echar, N_("invalid number after `.'")); + if (!key->echar && key->eword) + { + /* obsolescent syntax +A.x -B.y is equivalent to: + -k A+1.x+1,B.y (when y = 0) + -k A+1.x+1,B+1.y (when y > 0) + So eword is decremented as in the -k case + only when the end field (B) is specified and + echar (y) is 0. */ + key->eword--; + } if (*set_ordering (s, key, bl_end)) badfieldspec (optarg1, N_("stray character in field spec")); diff --git a/tests/misc/sort b/tests/misc/sort index e5d18d0..e871724 100755 --- a/tests/misc/sort +++ b/tests/misc/sort @@ -142,6 +142,12 @@ my @Tests = ["07f", '-n -k1.3,1.1', {IN=>"a 2\nb 1\n"}, {OUT=>"a 2\nb 1\n"}], ["07g", '-n -k2.2,1.2', {IN=>"aa 2\nbb 1\n"}, {OUT=>"aa 2\nbb 1\n"}], ["07h", '-k1.3nb,1.3', {IN=>" a 2\n b 1\n"}, {OUT=>" a 2\n b 1\n"}], +#ensure obsolescent key limits are handled correctly +["07i", '-s +0 -1', {IN=>"a c\na b\n"}, {OUT=>"a c\na b\n"}], +["07j", '-s +0 -1.0', {IN=>"a c\na b\n"}, {OUT=>"a c\na b\n"}], +["07k", '-s +0 -1.1', {IN=>"a c\na b\n"}, {OUT=>"a c\na b\n"}], +["07l", '-s +0 -1.2', {IN=>"a c\na b\n"}, {OUT=>"a b\na c\n"}], +["07m", '-s +0 -1.1b', {IN=>"a c\na b\n"}, {OUT=>"a b\na c\n"}], # # report an error for `.' without following char spec ["08a", '-k 2.,3', {EXIT=>2}, -- 1.6.2.5 --------------070200060104050705090509-- From unknown Sat Aug 16 16:08:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5958: Sort-8.4 bug Resent-From: Jim Meyering Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 20 Apr 2010 16:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5958 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?P=C3=A1draig?= Brady Cc: Santiago Rodriguez , 5958@debbugs.gnu.org, Eric Blake , Alan Curry Received: via spool by 5958-submit@debbugs.gnu.org id=B5958.127178253032715 (code B ref 5958); Tue, 20 Apr 2010 16:56:01 +0000 Received: (at 5958) by debbugs.gnu.org; 20 Apr 2010 16:55:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4GjR-0008Vc-8K for submit@debbugs.gnu.org; Tue, 20 Apr 2010 12:55:29 -0400 Received: from smtp1-g21.free.fr ([212.27.42.1]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4GjO-0008VW-DW for 5958@debbugs.gnu.org; Tue, 20 Apr 2010 12:55:28 -0400 Received: from smtp1-g21.free.fr (localhost [127.0.0.1]) by smtp1-g21.free.fr (Postfix) with ESMTP id 05E4394015E; Tue, 20 Apr 2010 18:55:17 +0200 (CEST) Received: from mx.meyering.net (mx.meyering.net [82.230.74.64]) by smtp1-g21.free.fr (Postfix) with ESMTP id D8D48940154; Tue, 20 Apr 2010 18:55:14 +0200 (CEST) Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id 59DF7E50F; Tue, 20 Apr 2010 18:55:14 +0200 (CEST) From: Jim Meyering In-Reply-To: <4BCDD7BF.4010303@draigBrady.com> =?UTF-8?Q?("P=C3=A1draig?= Brady"'s message of "Tue, 20 Apr 2010 17:35:11 +0100") References: <4BC842EF.1000901@fi.upm.es> <20100420083733.27378.qmail@kosh.dhis.org> <4BCDD7BF.4010303@draigBrady.com> Date: Tue, 20 Apr 2010 18:55:08 +0200 Message-ID: <87pr1udpxv.fsf@meyering.net> Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.1 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) P=C3=A1draig Brady wrote: > I've changed it around in the attached patch so that > we consistently use zero based limits throughout the code. > I'll push this later on tonight unless there are objections. ... > This regression was introduced in commit 224a69b5, 2009-02-24, > "sort: Fix two bugs with determining the end of field". > The specific regression being that we include 1 field too many when > an end field is specified using obsolescent key syntax (+POS -POS). > > * src/sort.c (main): When processing obsolescent format key specificati= ons, > normalize eword to a zero based count when no specific end char is give= n > for an end field. This matches what's done when keys are specified with= -k. > * tests/misc/sort: Add a few more tests for the obsolescent key formats= , > with test 07i being the particular failure addressed by this change. > * THANKS: Add Alan Curry who precisely identified the issue. > * NEWS: Mention the fix. > Reported by Santiago Rodr=C3=ADguez ... > +#ensure obsolescent key limits are handled correctly Nicely done. Thanks! s/en/ en/ From unknown Sat Aug 16 16:08:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5958: Sort-8.4 bug References: <4BC842EF.1000901@fi.upm.es> Resent-From: "Alan Curry" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 20 Apr 2010 21:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5958 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: P@draigBrady.com =?UTF-8?Q?(P=C3=A1draig?= Brady) Cc: Santiago Rodriguez , 5958@debbugs.gnu.org, Eric Blake , Jim Meyering Received: via spool by 5958-submit@debbugs.gnu.org id=B5958.12717975669200 (code B ref 5958); Tue, 20 Apr 2010 21:07:01 +0000 Received: (at 5958) by debbugs.gnu.org; 20 Apr 2010 21:06:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4Kdy-0002OL-BU for submit@debbugs.gnu.org; Tue, 20 Apr 2010 17:06:06 -0400 Received: from c-98-226-122-10.hsd1.in.comcast.net ([98.226.122.10] helo=kosh.dhis.org) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O4Kdw-0002Ny-A0 for 5958@debbugs.gnu.org; Tue, 20 Apr 2010 17:06:04 -0400 Received: (qmail 15935 invoked by uid 1000); 20 Apr 2010 21:05:59 -0000 Message-ID: <20100420210559.15934.qmail@kosh.dhis.org> From: "Alan Curry" Date: Tue, 20 Apr 2010 16:05:59 -0500 (GMT+5) In-Reply-To: <4BCDD7BF.4010303@draigBrady.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > > I've changed it around in the attached patch so that > we consistently use zero based limits throughout the code. > I'll push this later on tonight unless there are objections. In the definition of struct keyfield, is the comment by the "eword" member still correct? Or was it ever? [...] Content analysis details: (1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.9 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL [98.226.122.10 listed in zen.spamhaus.org] 0.9 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [98.226.122.10 listed in dnsbl.sorbs.net] -0.7 BAYES_20 BODY: Bayesian spam probability is 5 to 20% [score: 0.1724] 0.1 RDNS_DYNAMIC Delivered to trusted network by host with dynamic-looking rDNS 0.0 AWL AWL: From: address is in the auto white-list X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.2 (/) > > I've changed it around in the attached patch so that > we consistently use zero based limits throughout the code. > I'll push this later on tonight unless there are objections. In the definition of struct keyfield, is the comment by the "eword" member still correct? Or was it ever? size_t eword; /* Zero-origin first word after field. */ A shared understanding of what exactly the field represents would reduce the chance of future mishaps. -- Alan Curry From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 20 20:00:00 2010 Received: (at control) by debbugs.gnu.org; 21 Apr 2010 00:00:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4NMF-00048o-1y for submit@debbugs.gnu.org; Tue, 20 Apr 2010 19:59:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4NMC-00048d-OL for control@debbugs.gnu.org; Tue, 20 Apr 2010 19:59:58 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3KNxamP014126 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 20 Apr 2010 19:59:48 -0400 Received: from [10.3.238.47] (vpn-238-47.phx2.redhat.com [10.3.238.47]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3KN2WET017397 for ; Tue, 20 Apr 2010 19:02:33 -0400 Message-ID: <4BCE328D.4070001@redhat.com> Date: Tue, 20 Apr 2010 17:02:37 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: merge X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigF99F11687E30055D28B607C6" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 X-Spam-Score: -10.2 (----------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -10.3 (----------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF99F11687E30055D28B607C6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable forcemerge 5958 5991 --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enigF99F11687E30055D28B607C6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJLzjKNAAoJEKeha0olJ0NqQ4wH+gM1mgMBjHxGE0zGMndVn8pF i+4B/2ruI4ODnZmb+WIGdcXI7uT9JqAweWdi1YflHC8ROlLWrm4kztcMHrskTxyC /UypNdQl07pNQYwQHUUkGAuOd0DUV7tUzvrZ5cGz0Qa7Nz3JlyRGma8FBdHZI0Wj EWNfaZ0ex9O4cWJa4aWPQSwNwVDwsbaIAEV/FWgpOkNFPWcyba72JLGPjdieaeY5 MeCYrRLglkLrtXJwrZwd4metPfCYM2WACfKEkFT+7ggDHwADcLY8gKpEDazlO1Ea ezEzR/fAmZwNeEb5wBd0fyM7IOSAkh9hvXNrMXZ4SY6v+gJ0El0eYDXJGF4a6LQ= =SN+K -----END PGP SIGNATURE----- --------------enigF99F11687E30055D28B607C6-- From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 21 11:02:23 2010 Received: (at control) by debbugs.gnu.org; 21 Apr 2010 15:02:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4bRX-00033O-Mp for submit@debbugs.gnu.org; Wed, 21 Apr 2010 11:02:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4bRW-00033J-4T for control@debbugs.gnu.org; Wed, 21 Apr 2010 11:02:23 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3LF2GoP015719 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 21 Apr 2010 11:02:16 -0400 Received: from [10.3.238.47] (vpn-238-47.phx2.redhat.com [10.3.238.47]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3LF2FJY027780 for ; Wed, 21 Apr 2010 11:02:16 -0400 Message-ID: <4BCF137B.5050701@redhat.com> Date: Wed, 21 Apr 2010 09:02:19 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: closeout X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig1C395245D3CC5F0A88DCE514" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-Spam-Score: -10.3 (----------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -10.3 (----------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1C395245D3CC5F0A88DCE514 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable close 5991 8.5 close 5958 8.5 thanks --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig1C395245D3CC5F0A88DCE514 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJLzxN7AAoJEKeha0olJ0NqS/sIAIZbOyQjR03LLviYdLRPMFDF m4P3tanrDkpf69JzCz39JpCd2H7iXge5D2+9ZCfC1m9EiHB4dHNfsaIWFuwDGeJD uQsc2mIl2eHDkB443we5zu93XiakyazbfYTJcyn6r5NDwqjWlqiWc8tSN7VkTUDV QZmPd8As+UoTG/plEf7zT67AFBXUKTQKoIJIlIJMcthOg0O3LjMXjNqpq09iSKUX HKewR/KdcLh1H8uwAOVIb+EbOIeigcSdbjfDyY6iSfwS1JrkUNCioHuXV/YLagS8 SNEdFwntrwAhZ81JRe+S+dAeCFsgHdIE3vYVPXWPruurL0TjX6j3xERmMcfQT0g= =Em81 -----END PGP SIGNATURE----- --------------enig1C395245D3CC5F0A88DCE514-- From unknown Sat Aug 16 16:08:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#5958: Sort-8.4 bug Resent-From: Jim Meyering Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Fri, 23 Apr 2010 14:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5958 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: "Alan Curry" Cc: Santiago Rodriguez , 5958@debbugs.gnu.org, Eric Blake Received: via spool by 5958-submit@debbugs.gnu.org id=B5958.127203277910880 (code B ref 5958); Fri, 23 Apr 2010 14:27:02 +0000 Received: (at 5958) by debbugs.gnu.org; 23 Apr 2010 14:26:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5Jpi-0002pR-Sq for submit@debbugs.gnu.org; Fri, 23 Apr 2010 10:26:19 -0400 Received: from smtp1-g21.free.fr ([212.27.42.1]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5Jpg-0002pJ-T3 for 5958@debbugs.gnu.org; Fri, 23 Apr 2010 10:26:17 -0400 Received: from smtp1-g21.free.fr (localhost [127.0.0.1]) by smtp1-g21.free.fr (Postfix) with ESMTP id B84D4940155; Fri, 23 Apr 2010 16:26:08 +0200 (CEST) Received: from mx.meyering.net (mx.meyering.net [82.230.74.64]) by smtp1-g21.free.fr (Postfix) with ESMTP id ABD1D94010F; Fri, 23 Apr 2010 16:26:05 +0200 (CEST) Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id 83944D7D6; Fri, 23 Apr 2010 16:26:05 +0200 (CEST) From: Jim Meyering In-Reply-To: <20100420083733.27378.qmail@kosh.dhis.org> (Alan Curry's message of "Tue, 20 Apr 2010 03:37:33 -0500 (GMT+5)") References: <4BC842EF.1000901@fi.upm.es> <20100420083733.27378.qmail@kosh.dhis.org> Date: Fri, 23 Apr 2010 16:26:05 +0200 Message-ID: <87hbn21c02.fsf@meyering.net> Lines: 7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.1 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) Alan Curry wrote: > A full investigation has revealed: > This bug was introduced between coreutils 7.1 and 7.2, here: Thanks for digging. I closed this ticket a day or two prematurely. Sorry about that.