sort broken when using more than one -k's

Denis Vlasenko vda.linux at googlemail.com
Sat Feb 17 18:09:34 UTC 2007


On Friday 16 February 2007 02:26, Thomas Sattler wrote:
> Hi there ...
> 
> Current busybox (1.4.1) seems to be broken in applet sort when more
> than one -k's are used:
> 
> The example on http://www.busybox.net/downloads/BusyBox.html says
> 
> > $ echo -e "c 3\nb 2\nd 2" | sort -k 2,2n -k 1,1r
> 
> should result in
> 
> > d 2
> > b 2
> > c 3
> 
> which is what my (coreutils-6.4) sort does. busybox sort produces this:
> 
> > $ echo -e "c 3\nb 2\nd 2" | ./busybox sort -k 2,2n -k 1,1r
> > d 2
> > c 3
> > b 2

Thanks, fixed in svn. Patch is attached.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.patch
Type: text/x-diff
Size: 5192 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070217/4d475980/attachment-0002.bin 


More information about the busybox mailing list