Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2012 13:29:48 -0700
From:      Oleg Moskalenko <oleg.moskalenko@citrix.com>
To:        'Chris Rees' <crees@freebsd.org>, Lowell Gilbert <freebsd-ports-local@be-well.ilk.org>
Cc:        Gabor Kovesdan <gabor@freebsd.org>, "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   RE: CFT: new BSD-licensed sort available
Message-ID:  <031222CBCF33214AB2EB4ABA279428A30107B5E9D2A6@SJCPMAILBOX01.citrite.net>
In-Reply-To: <CADLo83_r3SgYj6apifN6NTCwZ-ApYbLkyMOS5zcCmTFst_Vcow@mail.gmail.com>
References:  <4F60C059.7060904@FreeBSD.org> <44pqcd8yhd.fsf@lowell-desk.lan> <CADLo83_r3SgYj6apifN6NTCwZ-ApYbLkyMOS5zcCmTFst_Vcow@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
There is no option "-2" in the new BSD sort or in the GNU sort. There is no=
 such option in Posix standard, too.

What is this option about, do we need to add something ?

Thanks
Oleg

-----Original Message-----
From: utisoft@gmail.com [mailto:utisoft@gmail.com] On Behalf Of Chris Rees
Sent: Thursday, March 15, 2012 12:50 PM
To: Lowell Gilbert
Cc: Gabor Kovesdan; Oleg Moskalenko; freebsd-ports@freebsd.org
Subject: Re: CFT: new BSD-licensed sort available

On 15 March 2012 19:18, Lowell Gilbert
<freebsd-ports-local@be-well.ilk.org> wrote:
> Gabor Kovesdan <gabor@FreeBSD.org> writes:
>
>> some time ago I started writing a BSDL sort variant from scratch since
>> the OpenBSD version did not support multibyte locales and was hard to
>> modify. The development was a bit stalled but recently, Oleg
>> Moskalenko <oleg.moskalenko@citrix.com> showed interest in continuing
>> this version and he has made a very good job on this BSD sort
>> variant. Now it is compatible with the base version of GNU sort but
>> the performance in most cases (string sort and -n) is quite behind GNU
>> sort (although with -g it is about *4 times* faster). Oleg is still
>> working on optimizing the code and the long-term plan is to drop GNU
>> sort once this variant is good enough to replace it. For now, it is
>> only available in Ports Collection as textproc/bsdsort but if there is
>> no objection or any serious bug report I plan to add it to base
>> installed as bsdsort, being GNU sort still the default sort until it
>> proves that we can safely drop GNU sort. If you are interested in this
>> sort utility, could you please try the port and report us any issue
>> that you experience?
>
> portsdb(1) (from portupgrade) doesn't seem to like it;
> apparently it is missing a '-2' option, which I haven't
> tracked down yet...

Fails with gnusort too anyway:

[crees@pegasus]~% gsort -2
gsort: invalid option -- '2'
Try `gsort --help' for more information.
[crees@pegasus]~%

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?031222CBCF33214AB2EB4ABA279428A30107B5E9D2A6>