From unknown Wed Jun 18 23:11:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#35636 <35636@debbugs.gnu.org> To: bug#35636 <35636@debbugs.gnu.org> Subject: Status: bug report sort command Reply-To: bug#35636 <35636@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:11:15 +0000 retitle 35636 bug report sort command reassign 35636 coreutils submitter 35636 Michele Liberi severity 35636 normal tag 35636 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 08 10:28:32 2019 Received: (at submit) by debbugs.gnu.org; 8 May 2019 14:28:32 +0000 Received: from localhost ([127.0.0.1]:33708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hONYe-0006ON-Fq for submit@debbugs.gnu.org; Wed, 08 May 2019 10:28:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOI2t-0007NR-Dg for submit@debbugs.gnu.org; Wed, 08 May 2019 04:35:23 -0400 Received: from lists.gnu.org ([209.51.188.17]:44070) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hOI2o-00073W-8b for submit@debbugs.gnu.org; Wed, 08 May 2019 04:35:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOI2l-000884-V2 for bug-coreutils@gnu.org; Wed, 08 May 2019 04:35:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOI2l-0006to-0l for bug-coreutils@gnu.org; Wed, 08 May 2019 04:35:15 -0400 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:46854) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOI2k-0006sF-Pg for bug-coreutils@gnu.org; Wed, 08 May 2019 04:35:14 -0400 Received: by mail-lj1-x231.google.com with SMTP id h21so164898ljk.13 for ; Wed, 08 May 2019 01:35:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=y3GDzRZu1aPE3oEqOTj+2jjZfwmzJz9pFGoDpDfDgzs=; b=YsOEGXNOCum5btNcP+jX9P4TA+34KYdEQQ3GsfJDtuhlyUobtxSB8t6PfHXF0HoPdS UAod8aVlpNWhPumnGShej41BCPCAqZKjX4q/zADYg37hZylq3Symscet2TJuoUtVs20A fnMXV8k774ozCT7btdQbyXYAC3c+ksRqtbWDj809ZLhGZ76/aX43N9fGR3YoT086HM+m 5qltiByFEZH+KkSpxxbRGqgNRsD1qSYKiW5HmrhwCBT407uPRkUsKPWAeJQ36bUTNzfv UJYw4U65tvyB9m6qFXJ+cUeMA9DdZYt6+nik4AJGqaBdQDjXV8w+OX6mHWjej/3TvOO4 vvvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=y3GDzRZu1aPE3oEqOTj+2jjZfwmzJz9pFGoDpDfDgzs=; b=Xc7WZn92pxz0eO//kRjn2e6yG4wJdjob393YiiujO1auBMvDqn7Aepc/DPatGT8wMz Z9FIq7oVIFGq/lVXgPbpljtoBLYxxGhP6D1AsugdSGbuzj9rCiuaiIronGLDWdG19O4D u/fqt2slFORMeuN94/pklte7F60R0z+iqmzvuQM7uo7kD4KBW/U/LA0DF84FQJ5iVRBC 8Y0ETQp8ttx93oBGSbc3X8SuTQyqWGqYUiOACpgcz0NHJeYrKKKKjoDwZAeIbfhVdNLC tLKkvDJApIJxwi5uQcBblRLyCPIboLNa9hcuFS+7iu0eA1vIUNpj1BXFDOClzBQay0Jc 4RcA== X-Gm-Message-State: APjAAAXIwlAvu5w+OCKH1ytS8sMKVVm6A3GQ4X+k6APAw6DqBKwujL5q IO3CId4OcBjHjElUEJ7TkAtHq/UZWnQa4Ml73eYbuA== X-Google-Smtp-Source: APXvYqxlrqSQTWUK7Y0wDSDwm+bTKXq6OfzYgqwpK2B3VgPIhJ4BxtV9Jx83E5TfarUWHX6azzGoM/ovND6TvVwKm8c= X-Received: by 2002:a05:651c:155:: with SMTP id c21mr20494071ljd.10.1557304512297; Wed, 08 May 2019 01:35:12 -0700 (PDT) MIME-Version: 1.0 From: Michele Liberi Date: Wed, 8 May 2019 10:35:01 +0200 Message-ID: Subject: bug report sort command To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary="000000000000433db505885c3632" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::231 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 08 May 2019 10:28:31 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000433db505885c3632 Content-Type: text/plain; charset="UTF-8" I verified the following bug is there in: - sort (GNU coreutils) 8.21 - sort (GNU coreutils) 8.22 - sort (GNU coreutils) 8.23 *Input file:* # cat sort.in 1|a|x 2|b|x 3|aa|x 4|bb|x 5|c|x *shell command and output:* # sort -t'|' -k2
I ve= rified the following bug is there in:
  • sort (GNU coreutils)= 8.21
  • sort (GNU coreutils) 8.22
  • sort (GNU coreutils) 8.23
Input file:
# cat sort.in
1|a|x
2|b= |x
3|aa|x
4|bb|x
5|c|x

shell co= mmand and output:
# sort -t'|' -k2 <sort.in

I exp= ected that key "a" to come before key "aa" and key &quo= t;b" to come before key "bb".

= --000000000000433db505885c3632-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 08 10:42:07 2019 Received: (at control) by debbugs.gnu.org; 8 May 2019 14:42:07 +0000 Received: from localhost ([127.0.0.1]:33730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hONlm-0006nH-Qq for submit@debbugs.gnu.org; Wed, 08 May 2019 10:42:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42575) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hONll-0006mc-6b; Wed, 08 May 2019 10:42:05 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9F6CF369D3; Wed, 8 May 2019 14:41:59 +0000 (UTC) Received: from [10.3.116.15] (ovpn-116-15.phx2.redhat.com [10.3.116.15]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 37E38271A2; Wed, 8 May 2019 14:41:58 +0000 (UTC) Subject: Re: bug#35636: bug report sort command To: Michele Liberi , 35636-done@debbugs.gnu.org References: From: Eric Blake Openpgp: preference=signencrypt Autocrypt: addr=eblake@redhat.com; keydata= xsBNBEvHyWwBCACw7DwsQIh0kAbUXyqhfiKAKOTVu6OiMGffw2w90Ggrp4bdVKmCaEXlrVLU xphBM8mb+wsFkU+pq9YR621WXo9REYVIl0FxKeQo9dyQBZ/XvmUMka4NOmHtFg74nvkpJFCD TUNzmqfcjdKhfFV0d7P/ixKQeZr2WP1xMcjmAQY5YvQ2lUoHP43m8TtpB1LkjyYBCodd+LkV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5mRRIsStjQzc2R9b+2VBUhlAqY1nAiBDv0Qnt+9cLiuEICeUwlyl42YdwpmY0ELcy5+u6wz mK/jxrYOpzXKDwLq5k4X+hmGuSNWWAN3gHiJqmJZPkhFPUIozZUCeEc76pS/IUN72NfprZmF Dp6/QDjDFtfS39bHSWXKVZUbqaMPqlj/z6Ugk027/3GUjHHr8WkeL1ezWepYDY7WSoXwfoAL 2UXYsMAr/uUncSKlfjvArhsej0S4zbqim2ZY6S8aRWw94J3bSvJR+Nwbs34GPTD4Pg== Organization: Red Hat, Inc. Message-ID: <42626a2d-9179-32b4-b2ef-e68d931463e3@redhat.com> Date: Wed, 8 May 2019 09:41:58 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KldRRtAWoyzPvJYn8xEXEXVVkFoqNM6EC" X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 08 May 2019 14:41:59 +0000 (UTC) X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --KldRRtAWoyzPvJYn8xEXEXVVkFoqNM6EC Content-Type: multipart/mixed; boundary="6kvWozwc30KyNgpuNOw1tVgIJnt1RLyF6"; protected-headers="v1" From: Eric Blake To: Michele Liberi , 35636-done@debbugs.gnu.org Message-ID: <42626a2d-9179-32b4-b2ef-e68d931463e3@redhat.com> Subject: Re: bug#35636: bug report sort command References: In-Reply-To: --6kvWozwc30KyNgpuNOw1tVgIJnt1RLyF6 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable tag 35636 notabug thanks On 5/8/19 3:35 AM, Michele Liberi wrote: > I verified the following bug is there in: >=20 > - sort (GNU coreutils) 8.21 > - sort (GNU coreutils) 8.22 > - sort (GNU coreutils) 8.23 >=20 > *Input file:* > # cat sort.in > 1|a|x > 2|b|x > 3|aa|x > 4|bb|x > 5|c|x >=20 >=20 > *shell command and output:* > # sort -t'|' -k2 3|aa|x > 1|a|x > 4|bb|x > 2|b|x > 5|c|x Let's use --debug to see what sort really did: $ sort --debug -t'|' -k2 =20 > *I expected that key "a" to come before key "aa" and key "b" to come be= fore > key "bb".* Your expectations are at odds with your incomplete command line. sort is behaving as required; therefore, I'm closing this as not a bug. But feel free to reply if you have further questions. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org --6kvWozwc30KyNgpuNOw1tVgIJnt1RLyF6-- --KldRRtAWoyzPvJYn8xEXEXVVkFoqNM6EC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAlzS6rYACgkQp6FrSiUn Q2ofJgf/a737sjdcO6933AHGjSiH5qP1AOfJpApy1TLQEQRZh2pwE5WdXb9/Y1Xh 2bIQ64WnAzyPNsy3CtybNgrXBZPEkBW2+1vuD06/njcSt0eGs9+xhtCyv3gcygcf 6EWo8OxwnbO/ADsR+PiRg0W0mymS7+JPsbAuEhyW6kLrVuLqc3uqtFufb0gbn7NI oFdMbDVRtzSkCAqiiYQpiEKxRxvptvMCeP8+8DndVLdFbuUQtXUfKS+ldI4UbdzY wFILeSkBIKZ4HrzWABFZYjAW1wK2h08iM8pvbCKLquvXuNJd45b2VJ+kHsI9Qxpn mE8brGKUSoj8LqcIiDZ8Ky8Df1jFFA== =svIi -----END PGP SIGNATURE----- --KldRRtAWoyzPvJYn8xEXEXVVkFoqNM6EC-- From unknown Wed Jun 18 23:11:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 06 Jun 2019 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator