Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jan 2013 17:50:01 +0000
From:      Chris Rees <crees@FreeBSD.org>
To:        Alex Keda <admin@lissyara.su>
Cc:        FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: [pkgng] case-sensitive search?
Message-ID:  <CADLo838_Np=DROA=PgN5vQBEE%2B95HAOr%2Buaek2k2OnoLTwE4Zw@mail.gmail.com>
In-Reply-To: <50F19CB4.6070308@lissyara.su>
References:  <50F04B95.3000301@lissyara.su> <CADLo83-HAVvCRUnTNBEXKHDEOtbHR8-9oi57_3y2sjeBgx9dtw@mail.gmail.com> <50F0686A.9030600@lissyara.su> <CADLo838Hy7o62wSAa%2BQs4fKfmmmp-762z3Tfp7h_8gYW9YBkaQ@mail.gmail.com> <50F19CB4.6070308@lissyara.su>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12 January 2013 17:26, Alex Keda <admin@lissyara.su> wrote:
> 12.01.2013 21:20, Chris Rees =D0=C9=DB=C5=D4:
>
>> On 11 January 2013 19:30, Alex Keda <admin@lissyara.su> wrote:
>>>
>>> 11.01.2013 23:05, Chris Rees =D0=C9=DB=C5=D4:
>>>
>>>> On 11 January 2013 17:27, Alex Keda <admin@lissyara.su> wrote:
>>>>>
>>>>>
>>>>> root@amazon:/home/lissyara # pkg -v
>>>>> 1.0.2
>>>>> root@amazon:/home/lissyara # pkg search phpmyadmin
>>>>> root@amazon:/home/lissyara # pkg search myadmin
>>>>> root@amazon:/home/lissyara # pkg search dmin
>>>>> phpMyAdmin-3.5.5               A set of PHP-scripts to manage MySQL
>>>>> over
>>>>> the
>>>>> web
>>>>> root@amazon:/home/lissyara #
>>>>>
>>>>> it's bad behavior... good behavior - case-insensitive search by deful=
t
>>>>
>>>>
>>>>
>>>> Like which other UNIX tool? :)
>>>>
>>>> To be honest, I'm not sure that capitals in PKGNAME is a good idea; a
>>>> quick perusal of the manpage doesn't show case insensitivity.
>>>
>>>
>>>
>>> for backward compatibility, because
>>>
>>>> cd /usr/ports && make search name=3D....
>>>
>>>
>>> is case insensitivity.
>>
>>
>> I've made a patch against pkgng HEAD, to add a -l option (just for pkg
>> search currently) to use the SQL LIKE operator.  This allows for case
>> insensitivity.  Perhaps it could just be default?
>>
>> http://www.bayofrum.net/~crees/patches/pkgng-like.diff
>>
>> If you want to try it out, stick the following as patch-like.diff into
>> ports-mgmt/pkg/files (crude backport):
>>
>> http://www.bayofrum.net/~crees/patches/pkgng-like-for-port.diff
>>
>> It works for me;
>>
>> [crees@pegasus]/usr/ports/ports-mgmt/pkg% pkg search -l mailscanner
>> MailScanner-4.84.5_3           Powerful virus/spam scanning framework
>> for mail gateways
>
>
> it's good, but - for search only?
> may be make to all commands?

This was only a prototype patch.  If it's not outright rejected, I'll
add it to the other commands too :)

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo838_Np=DROA=PgN5vQBEE%2B95HAOr%2Buaek2k2OnoLTwE4Zw>