[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sort (coreutils) bug
From: |
Eric Blake |
Subject: |
Re: sort (coreutils) bug |
Date: |
Fri, 11 Jan 2008 09:12:30 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[bug-coreutils would probably have been a better list, as documented in
'sort --help']
According to address@hidden on 1/11/2008 7:07 AM:
| // steps to reproduce:
| $ sort --key=4 tmp4
|
| // and column 4 is not sorted ("chr11", "chr1" and back "chr11") but
| it seems like it was sorted
| // by concatenated column 4 and 5. All fields are separated by spaces.
Not a bug. By itself, --key=4 means treat field 4 to the end of the line
as a key. You probably wanted --key=4,4, which specifies both the start
and end of the key as belonging to field 4.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHh5Vu84KuGfSFAYARAs1iAJwICptk6Xz2EXUi6Mskz2rZZ2XzlwCff7Bt
JU2vhMckI8lHr599MUUawGE=
=ryob
-----END PGP SIGNATURE-----