GNU bug report logs -
#6442
About the modifier of -k option in sort
Previous Next
Reported by: Peng Yu <pengyu.ut <at> gmail.com>
Date: Thu, 17 Jun 2010 02:08:01 UTC
Severity: normal
Merged with 6529
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6442 in the body.
You can then email your comments to 6442 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#6442
; Package
coreutils
.
(Thu, 17 Jun 2010 02:08:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Peng Yu <pengyu.ut <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Thu, 17 Jun 2010 02:08:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#6442
; Package
coreutils
.
(Thu, 17 Jun 2010 08:32:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 6442 <at> debbugs.gnu.org (full text, mbox):
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 (_("\
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#6442
; Package
coreutils
.
(Thu, 17 Jun 2010 21:12:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 6442 <at> debbugs.gnu.org (full text, mbox):
2010/6/17 Pádraig Brady <P <at> draigbrady.com>:
> 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 (_("\
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)
--
Regards,
Peng
Information forwarded
to
owner <at> debbugs.gnu.org, bug-coreutils <at> gnu.org
:
bug#6442
; Package
coreutils
.
(Thu, 17 Jun 2010 21:36:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 6442 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 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 (_("\
>
> 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).
>
> 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).
--
Eric Blake eblake <at> redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
Merged 6442 6529.
Request was from
Pádraig Brady <P <at> draigBrady.com>
to
control <at> debbugs.gnu.org
.
(Tue, 29 Jun 2010 00:04:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Pádraig Brady <P <at> draigBrady.com>
:
You have taken responsibility.
(Tue, 29 Jun 2010 00:25:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Peng Yu <pengyu.ut <at> gmail.com>
:
bug acknowledged by developer.
(Tue, 29 Jun 2010 00:25:01 GMT)
Full text and
rfc822 format available.
Message #21 received at 6442-done <at> debbugs.gnu.org (full text, mbox):
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 (_("\
Reply sent
to
Pádraig Brady <P <at> draigBrady.com>
:
You have taken responsibility.
(Tue, 29 Jun 2010 00:25:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Victor Grishchenko <victor.grishchenko <at> gmail.com>
:
bug acknowledged by developer.
(Tue, 29 Jun 2010 00:25:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 27 Jul 2010 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 336 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.