From unknown Wed Jun 25 05:42:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6442: About the modifier of -k option in sort Resent-From: Peng Yu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 17 Jun 2010 02:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6442 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 6442@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.127674045713858 (code B ref -1); Thu, 17 Jun 2010 02:08:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jun 2010 02:07:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OP4W1-0003bT-Ck for submit@debbugs.gnu.org; Wed, 16 Jun 2010 22:07:37 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OP4Vz-0003bN-4L for submit@debbugs.gnu.org; Wed, 16 Jun 2010 22:07:36 -0400 Received: from lists.gnu.org ([199.232.76.165]:42471) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OP4Vv-00054R-G3 for submit@debbugs.gnu.org; Wed, 16 Jun 2010 22:07:31 -0400 Received: from [140.186.70.92] (port=52675 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OP4Vt-0004Zo-Dv for bug-coreutils@gnu.org; Wed, 16 Jun 2010 22:07:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OP4Vs-00076g-3z for bug-coreutils@gnu.org; Wed, 16 Jun 2010 22:07:29 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:59086) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OP4Vr-00076a-WE for bug-coreutils@gnu.org; Wed, 16 Jun 2010 22:07:28 -0400 Received: by yxf34 with SMTP id 34so1715414yxf.0 for ; Wed, 16 Jun 2010 19:07:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=22gvsKK7bXvgcIsMKhUGxXPimMRqjmMPEdmbIBz8IEU=; b=l2W74MiOTq/FC0PbOEaNBKKVBw5S7b3BW1Cr6OAAGOF0Rd2KzgQyh3QU4GYrgqMLsR T+ckWnVRxDE/1Up8sPl3K2/WypBh3iY8dxNn2Z/it+6ioOD3zZfwIIRsbYbo5vBZS/T8 LFpydTlRgsYSju1wIo96LIvK7B0rOQZdGHwfc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=H54ltqobCbBCrH1tlRiULAT3GlfLkxLoFG3UFa4UG//HIIKaA3CXbFj6zAQD/H6cKv p+Qae5CguQx1jmcUtdpW88BphapkPNJ4UVbLaPT8zjg6oWZbO/4fcOGfORY8RM/lj32A Lr/lUj0E27cPR0d2sPdvP/wiKs15NXRo/9OJU= MIME-Version: 1.0 Received: by 10.150.14.2 with SMTP id 2mr11301270ybn.12.1276740447288; Wed, 16 Jun 2010 19:07:27 -0700 (PDT) Received: by 10.151.26.11 with HTTP; Wed, 16 Jun 2010 19:07:27 -0700 (PDT) Date: Wed, 16 Jun 2010 21:07:27 -0500 Message-ID: From: Peng Yu Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.7 (-----) 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: -5.7 (-----) Hello, The modifiers of -k are discussed in the examples in 'info sort' rather than in the main entry of "-k". I feel that this be improved by clearly describe each modifier under the main entry of "-k". It is not very clear to how many modifiers there are. -- Regards, Peng From unknown Wed Jun 25 05:42:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6442: About the modifier of -k option in sort 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: Thu, 17 Jun 2010 08:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6442 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Peng Yu Cc: 6442@debbugs.gnu.org Received: via spool by 6442-submit@debbugs.gnu.org id=B6442.127676348924119 (code B ref 6442); Thu, 17 Jun 2010 08:32:02 +0000 Received: (at 6442) by debbugs.gnu.org; 17 Jun 2010 08:31:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPAVU-0006Gy-BE for submit@debbugs.gnu.org; Thu, 17 Jun 2010 04:31:28 -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 1OPAVS-0006Gs-MH for 6442@debbugs.gnu.org; Thu, 17 Jun 2010 04:31:27 -0400 Received: (qmail 9269 invoked from network); 17 Jun 2010 08:31:22 -0000 Received: from unknown (HELO ?192.168.2.25?) (84.203.137.218) by mail1.slb.deg.dub.stisp.net with SMTP; 17 Jun 2010 08:31:22 -0000 Message-ID: <4C19DD08.70309@draigBrady.com> Date: Thu, 17 Jun 2010 09:30:00 +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: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -2.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: -2.8 (--) On 17/06/10 03:07, Peng Yu wrote: > Hello, > > The modifiers of -k are discussed in the examples in 'info sort' > rather than in the main entry of "-k". I feel that this be improved by > clearly describe each modifier under the main entry of "-k". It is not > very clear to how many modifiers there are. > The sort --help (man) output has been improved lately, to group the ordering options, and these are referenced in the detailed description of POS You are looking at the latest version right? Would the following be enough to highlight the info you might have missed? --- a/src/sort.c +++ b/src/sort.c @@ -386,7 +386,7 @@ Other options:\n\ "), stdout); fputs (_("\ -k, --key=POS1[,POS2] start a key at POS1 (origin 1), end it at POS2\n\ - (default end of line)\n\ + (default end of line). See POS syntax below\n\ -m, --merge merge already sorted files; do not sort\n\ "), stdout); fputs (_("\ From unknown Wed Jun 25 05:42:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6442: About the modifier of -k option in sort Resent-From: Peng Yu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 17 Jun 2010 21:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6442 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: =?UTF-8?Q?P=C3=A1draig?= Brady Cc: 6442@debbugs.gnu.org Received: via spool by 6442-submit@debbugs.gnu.org id=B6442.127680909717162 (code B ref 6442); Thu, 17 Jun 2010 21:12:01 +0000 Received: (at 6442) by debbugs.gnu.org; 17 Jun 2010 21:11:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPMN6-0004Sl-R2 for submit@debbugs.gnu.org; Thu, 17 Jun 2010 17:11:37 -0400 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPMN4-0004Sf-Nt for 6442@debbugs.gnu.org; Thu, 17 Jun 2010 17:11:35 -0400 Received: by gyh4 with SMTP id 4so343184gyh.3 for <6442@debbugs.gnu.org>; Thu, 17 Jun 2010 14:11:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=gVSue2PKBp4pFtb1x7i00Np6jZT7+iNC+GrNHO0TxFI=; b=AoIrecoHs4yQZvcgYMUD4BWIy/9mF5BcPfu5yitX8jkWX30QvG8Ev0LxGxCHoRoomQ LdiM+NE4WVb4SGMZkBLRBioYBMPuTfQvb6DvBgonoTVQDow1EfZTHBCnwXR1ZLIqVXPK AvvuKMJVaOUDdvNGxAuHJ0Sahntdb4H8KA4wI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=KagcF5a4SFzfhP9BftwY6aoujMH1Q01hNMGMWrV9dmxkIaihRbTtig2gJ4wnLHZ8XB wNO9DJ/m/K46qod8CswiAFasAJlfj5vohPL/hqbk3LdYPAsDB+0qmpBQQCVmEW3DuwEK vTszcotwuBF1v+zpXuVkkXpVHKkTOA9DJPBac= MIME-Version: 1.0 Received: by 10.150.240.8 with SMTP id n8mr50755ybh.409.1276809089669; Thu, 17 Jun 2010 14:11:29 -0700 (PDT) Received: by 10.151.26.11 with HTTP; Thu, 17 Jun 2010 14:11:29 -0700 (PDT) In-Reply-To: <4C19DD08.70309@draigBrady.com> References: <4C19DD08.70309@draigBrady.com> Date: Thu, 17 Jun 2010 16:11:29 -0500 Message-ID: From: Peng Yu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -4.0 (----) 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.0 (----) 2010/6/17 P=E1draig Brady : > On 17/06/10 03:07, Peng Yu wrote: >> Hello, >> >> The modifiers of -k are discussed in the examples in 'info sort' >> rather than in the main entry of "-k". I feel that this be improved by >> clearly describe each modifier under the main entry of "-k". It is not >> very clear to how many modifiers there are. >> > > The sort --help (man) output has been improved lately, > to group the ordering options, and these are referenced in > the detailed description of POS > You are looking at the latest version right? > Would the following be enough to highlight the info you might have missed= ? > > --- a/src/sort.c > +++ b/src/sort.c > @@ -386,7 +386,7 @@ Other options:\n\ > =A0"), stdout); > =A0 =A0 =A0 fputs (_("\ > =A0 -k, --key=3DPOS1[,POS2] =A0 =A0 start a key at POS1 (origin 1), end i= t at POS2\n\ > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(default end of = line)\n\ > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(default end of = line). =A0See POS syntax below\n\ > =A0 -m, --merge =A0 =A0 =A0 =A0 =A0 =A0 =A0 merge already sorted files; d= o not sort\n\ > =A0"), stdout); > =A0 =A0 =A0 fputs (_("\ Is it in the latest version? If yes, I'll install it. coreutils-8.5.tar.xz.sig 23-Apr-2010 12:42 836 BTW, how to figure out what version of my coreutils is? I 'man sort', it shows the following at the bottom of that page. I don't understand 7.4 is of date March 2010, it should be May 2009 according to http://ftp.gnu.org/gnu/coreutils/, right? GNU coreutils 7.4 March 2010 SORT= (1) --=20 Regards, Peng From unknown Wed Jun 25 05:42:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6442: About the modifier of -k option in sort Resent-From: Eric Blake Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 17 Jun 2010 21:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6442 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: Peng Yu Cc: =?UTF-8?Q?P=C3=A1draig?= Brady , 6442@debbugs.gnu.org Received: via spool by 6442-submit@debbugs.gnu.org id=B6442.127681052517795 (code B ref 6442); Thu, 17 Jun 2010 21:36:02 +0000 Received: (at 6442) by debbugs.gnu.org; 17 Jun 2010 21:35:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPMk9-0004cy-9z for submit@debbugs.gnu.org; Thu, 17 Jun 2010 17:35:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPMk7-0004cr-57 for 6442@debbugs.gnu.org; Thu, 17 Jun 2010 17:35:24 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o5HLZINX012907 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 17 Jun 2010 17:35:18 -0400 Received: from [10.3.225.162] (vpn-225-162.phx2.redhat.com [10.3.225.162]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o5HLZHg6031734; Thu, 17 Jun 2010 17:35:18 -0400 Message-ID: <4C1A94DB.2050400@redhat.com> Date: Thu, 17 Jun 2010 15:34:19 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Mnenhy/0.8.2 Thunderbird/3.0.4 MIME-Version: 1.0 References: <4C19DD08.70309@draigBrady.com> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig5EB6797F527D7C04EE25C193" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Spam-Score: -10.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: -10.1 (----------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5EB6797F527D7C04EE25C193 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 06/17/2010 03:11 PM, Peng Yu wrote: >> You are looking at the latest version right? >> Would the following be enough to highlight the info you might have mis= sed? >> >> --- a/src/sort.c >> +++ b/src/sort.c >> @@ -386,7 +386,7 @@ Other options:\n\ >> "), stdout); >> fputs (_("\ >> -k, --key=3DPOS1[,POS2] start a key at POS1 (origin 1), end it a= t POS2\n\ >> - (default end of line)\n\ >> + (default end of line). See POS syntax be= low\n\ >> -m, --merge merge already sorted files; do not sort\n\= >> "), stdout); >> fputs (_("\ >=20 > Is it in the latest version? If yes, I'll install it. > coreutils-8.5.tar.xz.sig 23-Apr-2010 12:42 836 No, the whole point of this patch is that it is for the latest coreutils.git, which is post 8.5 (but will be in 8.6 if you like how it is worded). >=20 > BTW, how to figure out what version of my coreutils is? I 'man sort', > it shows the following at the bottom of that page. I don't understand > 7.4 is of date March 2010, it should be May 2009 according to > http://ftp.gnu.org/gnu/coreutils/, right? No, that just means that whoever pre-built coreutils 7.4 for your distro did so in March 2010, even though they used a tarball from May 2009. You can _always_ use 'sort --version' to find the actual version on your machine (and using --version works for almost every GNU program out there, the few exceptions being programs like /bin/test that have behavior mandated by POSIX when given a single argument). --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig5EB6797F527D7C04EE25C193 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJMGpTbAAoJEKeha0olJ0NqTJYH/0z7+QeIy+1k5++6zegtndV1 XkAtdjOyZosEBXzUiPyrOyvmckc/zkTC5D3livO9VrZqGxEEgpC0XNdjs6ojjnzS erisSzgKyBQIAK7wYNEhgAC3MADl+cKoTCvl9RTtrfwpYLFUzJuqqY7q8wO4vXUx RC+Pj+7Qzg4F0s1tHuGPOCQ36ZvoNBxBYzzMNq40znz1Dnw8pFX7mZypGUvQd/jb I9CY/c6VedQV0NXWVkZ/5ADXgs1FiTyDbn5XQiuZkK9ObKgnG7Wz8D4vxb6mo8+x cRAzJ2n77n5kepZpJwGF9AYrOCq+p775S3EhAGPX4SJXdeq6eCupmsZ3cUGk/I0= =T6wk -----END PGP SIGNATURE----- --------------enig5EB6797F527D7C04EE25C193-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 28 20:03:46 2010 Received: (at control) by debbugs.gnu.org; 29 Jun 2010 00:03:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTOIk-0005Xf-KZ for submit@debbugs.gnu.org; Mon, 28 Jun 2010 20:03:46 -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 1OTOIj-0005XZ-3j for control@debbugs.gnu.org; Mon, 28 Jun 2010 20:03:45 -0400 Received: (qmail 68143 invoked from network); 29 Jun 2010 00:03:40 -0000 Received: from unknown (HELO ?192.168.2.25?) (84.203.137.218) by mail1.slb.deg.dub.stisp.net with SMTP; 29 Jun 2010 00:03:40 -0000 Message-ID: <4C29385A.3040807@draigBrady.com> Date: Tue, 29 Jun 2010 01:03:38 +0100 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= 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 To: control@debbugs.gnu.org X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) 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: -1.9 (-) merge 6529 6442 From unknown Wed Jun 25 05:42:11 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: Peng Yu Subject: bug#6442: closed (Re: bug#6442: About the modifier of -k option in sort) Message-ID: References: <4C293D4F.5070605@draigBrady.com> X-Gnu-PR-Message: they-closed 6442 X-Gnu-PR-Package: coreutils Reply-To: 6442@debbugs.gnu.org Date: Tue, 29 Jun 2010 00:25:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1277771101-24169-1" This is a multi-part message in MIME format... ------------=_1277771101-24169-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #6442: About the modifier of -k option in sort which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 6442@debbugs.gnu.org. --=20 6442: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6442 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1277771101-24169-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 6442-done) by debbugs.gnu.org; 29 Jun 2010 00:24:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTOdE-0006He-Rw for submit@debbugs.gnu.org; Mon, 28 Jun 2010 20:24:56 -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 1OTOdD-0006HY-7w for 6442-done@debbugs.gnu.org; Mon, 28 Jun 2010 20:24:55 -0400 Received: (qmail 70262 invoked from network); 29 Jun 2010 00:24:49 -0000 Received: from unknown (HELO ?192.168.2.25?) (84.203.137.218) by mail1.slb.deg.dub.stisp.net with SMTP; 29 Jun 2010 00:24:49 -0000 Message-ID: <4C293D4F.5070605@draigBrady.com> Date: Tue, 29 Jun 2010 01:24:47 +0100 From: =?ISO-8859-1?Q?P=E1draig_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 To: 6442-done@debbugs.gnu.org Subject: Re: bug#6442: About the modifier of -k option in sort References: <4C19DD08.70309@draigBrady.com> In-Reply-To: <4C19DD08.70309@draigBrady.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6442-done 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: -2.8 (--) I've applied this doc tweak: On 17/06/10 09:30, Pádraig Brady wrote: > --- a/src/sort.c > +++ b/src/sort.c > @@ -386,7 +386,7 @@ Other options:\n\ > "), stdout); > fputs (_("\ > -k, --key=POS1[,POS2] start a key at POS1 (origin 1), end it at POS2\n\ > - (default end of line)\n\ > + (default end of line). See POS syntax below\n\ > -m, --merge merge already sorted files; do not sort\n\ > "), stdout); > fputs (_("\ ------------=_1277771101-24169-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Jun 2010 02:07:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OP4W1-0003bT-Ck for submit@debbugs.gnu.org; Wed, 16 Jun 2010 22:07:37 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OP4Vz-0003bN-4L for submit@debbugs.gnu.org; Wed, 16 Jun 2010 22:07:36 -0400 Received: from lists.gnu.org ([199.232.76.165]:42471) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OP4Vv-00054R-G3 for submit@debbugs.gnu.org; Wed, 16 Jun 2010 22:07:31 -0400 Received: from [140.186.70.92] (port=52675 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OP4Vt-0004Zo-Dv for bug-coreutils@gnu.org; Wed, 16 Jun 2010 22:07:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OP4Vs-00076g-3z for bug-coreutils@gnu.org; Wed, 16 Jun 2010 22:07:29 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:59086) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OP4Vr-00076a-WE for bug-coreutils@gnu.org; Wed, 16 Jun 2010 22:07:28 -0400 Received: by yxf34 with SMTP id 34so1715414yxf.0 for ; Wed, 16 Jun 2010 19:07:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=22gvsKK7bXvgcIsMKhUGxXPimMRqjmMPEdmbIBz8IEU=; b=l2W74MiOTq/FC0PbOEaNBKKVBw5S7b3BW1Cr6OAAGOF0Rd2KzgQyh3QU4GYrgqMLsR T+ckWnVRxDE/1Up8sPl3K2/WypBh3iY8dxNn2Z/it+6ioOD3zZfwIIRsbYbo5vBZS/T8 LFpydTlRgsYSju1wIo96LIvK7B0rOQZdGHwfc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=H54ltqobCbBCrH1tlRiULAT3GlfLkxLoFG3UFa4UG//HIIKaA3CXbFj6zAQD/H6cKv p+Qae5CguQx1jmcUtdpW88BphapkPNJ4UVbLaPT8zjg6oWZbO/4fcOGfORY8RM/lj32A Lr/lUj0E27cPR0d2sPdvP/wiKs15NXRo/9OJU= MIME-Version: 1.0 Received: by 10.150.14.2 with SMTP id 2mr11301270ybn.12.1276740447288; Wed, 16 Jun 2010 19:07:27 -0700 (PDT) Received: by 10.151.26.11 with HTTP; Wed, 16 Jun 2010 19:07:27 -0700 (PDT) Date: Wed, 16 Jun 2010 21:07:27 -0500 Message-ID: Subject: About the modifier of -k option in sort From: Peng Yu To: bug-coreutils@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: submit 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: -5.7 (-----) Hello, The modifiers of -k are discussed in the examples in 'info sort' rather than in the main entry of "-k". I feel that this be improved by clearly describe each modifier under the main entry of "-k". It is not very clear to how many modifiers there are. -- Regards, Peng ------------=_1277771101-24169-1-- From unknown Wed Jun 25 05:42:11 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: Victor Grishchenko Subject: bug#6529: closed (Re: bug#6442: About the modifier of -k option in sort) Message-ID: References: <4C293D4F.5070605@draigBrady.com> X-Gnu-PR-Message: they-closed 6529 X-Gnu-PR-Package: coreutils Reply-To: 6529@debbugs.gnu.org Date: Tue, 29 Jun 2010 00:25:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1277771102-24169-3" This is a multi-part message in MIME format... ------------=_1277771102-24169-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #6442: --key option problem which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 6529@debbugs.gnu.org. --=20 6442: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6442 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1277771102-24169-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 6442-done) by debbugs.gnu.org; 29 Jun 2010 00:24:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTOdE-0006He-Rw for submit@debbugs.gnu.org; Mon, 28 Jun 2010 20:24:56 -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 1OTOdD-0006HY-7w for 6442-done@debbugs.gnu.org; Mon, 28 Jun 2010 20:24:55 -0400 Received: (qmail 70262 invoked from network); 29 Jun 2010 00:24:49 -0000 Received: from unknown (HELO ?192.168.2.25?) (84.203.137.218) by mail1.slb.deg.dub.stisp.net with SMTP; 29 Jun 2010 00:24:49 -0000 Message-ID: <4C293D4F.5070605@draigBrady.com> Date: Tue, 29 Jun 2010 01:24:47 +0100 From: =?ISO-8859-1?Q?P=E1draig_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 To: 6442-done@debbugs.gnu.org Subject: Re: bug#6442: About the modifier of -k option in sort References: <4C19DD08.70309@draigBrady.com> In-Reply-To: <4C19DD08.70309@draigBrady.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6442-done 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: -2.8 (--) I've applied this doc tweak: On 17/06/10 09:30, Pádraig Brady wrote: > --- a/src/sort.c > +++ b/src/sort.c > @@ -386,7 +386,7 @@ Other options:\n\ > "), stdout); > fputs (_("\ > -k, --key=POS1[,POS2] start a key at POS1 (origin 1), end it at POS2\n\ > - (default end of line)\n\ > + (default end of line). See POS syntax below\n\ > -m, --merge merge already sorted files; do not sort\n\ > "), stdout); > fputs (_("\ ------------=_1277771102-24169-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Jun 2010 15:56:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTGh9-0000y3-Dc for submit@debbugs.gnu.org; Mon, 28 Jun 2010 11:56:27 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTFIk-0000Ld-0U for submit@debbugs.gnu.org; Mon, 28 Jun 2010 10:27:10 -0400 Received: from lists.gnu.org ([199.232.76.165]:60384) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OTFIf-00063f-2h for submit@debbugs.gnu.org; Mon, 28 Jun 2010 10:27:05 -0400 Received: from [140.186.70.92] (port=59336 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTFId-0004UT-4Q for bug-coreutils@gnu.org; Mon, 28 Jun 2010 10:27:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTFIa-0007UT-Ur for bug-coreutils@gnu.org; Mon, 28 Jun 2010 10:27:01 -0400 Received: from mail-ww0-f41.google.com ([74.125.82.41]:42854) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTFIa-0007UJ-MW for bug-coreutils@gnu.org; Mon, 28 Jun 2010 10:27:00 -0400 Received: by wwf26 with SMTP id 26so3005105wwf.0 for ; Mon, 28 Jun 2010 07:26:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=ZpDWoqZ+/2Tj2rgayKf4Sa3EsmIcXoWjE85S03GJF0U=; b=hQRsTl/oV1dSZnT5gA1e67Goj6XTizCZAGsgMiuvyqdbQSw8l58+ABiCmc1SNhbEYk fQzD+Z/cm+dNCjxFDjVsr+zc2vT0DiMQ4BxsjqZLm//VQyEXD1tl4ufap1Mr2mOcWhPj XbslELjnKygxFQYwFsTJptydsfwFFJaLIIgQw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=KYvphqbqLJDPmypXirFWD/RVGLCoUD/paanNACi+1bUOySvpSPrmv0l0IcMHVeh88i yJd1Fp0iAs/4eyFrFHy5cmIhCNmoRxcBsUMK3V5lplwVEDB4Ofu+hz2WKPYuGQs39ALr vft7S+DrH7iBhJmq2nzSfR57hey0eCkVQ0vNc= Received: by 10.216.184.197 with SMTP id s47mr3762385wem.63.1277735214056; Mon, 28 Jun 2010 07:26:54 -0700 (PDT) Received: from wlan-145-94-184-240.wlan.tudelft.nl (wlan-145-94-184-240.wlan.tudelft.nl [145.94.184.240]) by mx.google.com with ESMTPS id o72sm5068421wej.39.2010.06.28.07.26.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 28 Jun 2010 07:26:53 -0700 (PDT) From: Victor Grishchenko Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: --key option problem Date: Mon, 28 Jun 2010 16:26:51 +0200 Message-Id: To: bug-coreutils@gnu.org Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 28 Jun 2010 11:56:26 -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: -5.9 (-----) Hi! Today I've ran into a problem of the sort ignoring the --key parameter. It sorts data according to the alphanumeric order of the full string = instead. Twiddling here and there (coreutils version, LC_ALL, positions, etc) did = not work. Any ideas? harvest$ zcat data.log.gz | pcregrep '[TR]data' | head -10 | sort = --key=3D17,30=20 0_01_18_139_840 vtt1_100 vtt2_9#8 Tdata (0,8132) 0_01_19_377_086 vtt1_100 vtt2_9#8 Tdata (0,8132) 0_01_19_771_887 vtt1_100 vtt1_6#2 Tdata (0,7832) 0_01_19_794_385 vtt1_100 vtt1_2#3 Tdata (0,7832) 0_01_20_456_841 vtt1_100 vtt1_23#4 Tdata (0,8132) 0_01_21_444_514 vtt1_100 vtt2_6#7 Tdata (0,8132) 0_01_21_444_752 vtt1_100 vtt1_26#5 Tdata (0,7832) 0_01_22_944_496 vtt1_100 vtt2_8#9 Tdata (0,7835) 0_01_23_498_353 vtt1_100 vtt2_26#10 Tdata (0,7835) 0_01_23_612_298 vtt1_100 vtt1_4#6 Tdata (0,7832) harvest$ sort --version sort (GNU coreutils) 8.5 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later = . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Mike Haertel and Paul Eggert. harvest$ env TERM=3Dxterm-color SHELL=3D/bin/bash SSH_TTY=3D/dev/pts/32 LC_ALL=3DC PATH=3D/home/victor/bin:/usr/local/bin:/usr/bin:/bin:/usr/games LANG=3Den_US.UTF-8 PS1=3D\W\$=20 SHLVL=3D1 _=3D/home/victor/bin/env harvest$=20 --=20 V ------------=_1277771102-24169-3--