On 2010/02/10 17:58, Ulrich Spörlein wrote:
Hi guys,

not sure if this is a pilot error, but it seems to me that gnu sort -n
is broken on at least -STABLE (couldn't test -CURRENT yet).

It somehow does not manifest when using a simple list and sorting on a
specific column, but it always happens to me when using it in
combination with find(1).

% truncate -s10m a; truncate -s5m b; truncate -s800k c
% find a b c -ls|sort -nk7,7
      8       64 -rw-r--r--    1 uqs              wheel            10485760 Feb 
10 09:13 a
     10       64 -rw-r--r--    1 uqs              wheel             5242880 Feb 
10 09:13 b
     12       64 -rw-r--r--    1 uqs              wheel              819200 Feb 
10 09:13 c
% find a b c -ls|sort -gk7,7
     12       64 -rw-r--r--    1 uqs              wheel              819200 Feb 
10 09:13 c
     10       64 -rw-r--r--    1 uqs              wheel             5242880 Feb 
10 09:13 b
      8       64 -rw-r--r--    1 uqs              wheel            10485760 Feb 
10 09:13 a

Hi, here is a patch I've submitted about 4 years ago...
http://www.freebsd.org/cgi/query-pr.cgi?pr=gnu/93566

--
Kazuaki ODA
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to