bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sort -t: -k1 behaves strangely


From: John Cowan
Subject: Re: sort -t: -k1 behaves strangely
Date: Tue, 24 Apr 2007 00:31:20 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

Eric Blake scripsit:

> Did you mean to use -k1,1 instead of -k1?  Otherwise, you are stating that
> the key begins with the first field, but continues through the end of the
> line (with the field separators ignored), and since ' ' comes before '#',
> the output looked correct to me.  Using -k1,1 swaps the line to list #2 first.

Ah, thanks.  Unfortunately, this is documented only on the info page,
not on the man page or "sort --help".  Adding "or EOL if omitted"
to those two sources would be very helpful.

I've probably never noticed the difference before, because I usually
sort tab-delimited rather than colon-delimited files.

-- 
The man that wanders far                        address@hidden
from the walking tree                           http://www.ccil.org/~cowan
        --first line of a non-existent poem by:         John Cowan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]