LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] another solaris sort request

[ILUG] another solaris sort request

Pádraig Brady P at draigBrady.com
Fri Jun 12 10:20:09 IST 2009


Maciej Bliziński wrote:
> Indeed, it looks like there's difference between Sun sort and GNU sort::
> 
> blizinski at cabbage ~ $ uname -a
> SunOS cabbage.dub.corp.google.com 5.10 Generic_137138-09 i86pc i386 i86pc
> blizinski at cabbage ~ $ cat /etc/release
>                        Solaris 10 10/08 s10x_u6wos_07b X86
>            Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
>                         Use is subject to license terms.
>                             Assembled 27 October 2008
> blizinski at cabbage ~ $ printf "a 2\nb 1\n" | sort -n -k1.3,1.1
> a 2
> b 1
> blizinski at cabbage ~ $ printf "aa 2\nbb 1\n" | sort -n -k2.2,1.2
> aa 2
> bb 1
> blizinski at cabbage ~ $ printf "a 2\nb 1\n" | gsort -n -k1.3,1.1
> b 1
> a 2
> blizinski at cabbage ~ $ printf "aa 2\nbb 1\n" | gsort -n -k2.2,1.2
> bb 1
> aa 2
> 
> (I alias sort='gsort' for interactive sessions on Solaris.)

Yep. confirms another GNU sort bug.

cheers,
Pádraig.



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell