bug-coreutils
[Top][All Lists]
Advanced

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

Re: Support bytesize comparison in sort


From: Paul Eggert
Subject: Re: Support bytesize comparison in sort
Date: Tue, 30 May 2006 16:49:37 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Mart Somermaa <address@hidden> writes:

> - the implementation is simple, effective and 2^n/10^n-problem agnostic
> (at the cost of comparing 100000K less than 1M, which is not a problem
> as we assume the input to be properly scaled).

That's the cost that I'm worried about.  The input is not always
"properly scaled".  Even GNU 'du' does not always "properly scale"
numbers in the sense that you're describing, since it sometimes says
"1001k" and sometimes "1.0M".  In general, if sort ignores the
distinction between powers-of-2 and powers-of-10, the output will be
wrong sometimes.




reply via email to

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