[Top][All Lists]

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

mistake in sort -k argument processing?

From: Evan Hunt
Subject: mistake in sort -k argument processing?
Date: Fri, 22 Dec 2006 00:04:54 -0800
User-agent: Mutt/1.5.10i


    $ sort -k1.0,2
    sort: character offset is zero: invalid field specification `1.0,2'

Now, this seems unnecessary to me; it *could* silently ignore the ".0" and
treat it as if you hadn't specified a character offset.  (SCO does that.)
But, regardless, if that *is* going to be an error, then shouldn't this:

    $ sort -k1,2.0

...be an error as well?  It isn't.

Evan Hunt

reply via email to

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