From owner-freebsd-ports@FreeBSD.ORG Sat Jan 12 17:26:14 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D9E42BEC for ; Sat, 12 Jan 2013 17:26:14 +0000 (UTC) (envelope-from admin@lissyara.su) Received: from mx.lissyara.su (mx.lissyara.su [91.227.18.11]) by mx1.freebsd.org (Postfix) with ESMTP id 7616913B for ; Sat, 12 Jan 2013 17:26:14 +0000 (UTC) Received: from [79.164.58.122] (port=56687 helo=dc7700p.lissyara.su) by mx.lissyara.su with esmtpa (Exim 4.80 (FreeBSD)) (envelope-from ) id 1Tu4qS-000886-JM for freebsd-ports@freebsd.org; Sat, 12 Jan 2013 21:26:12 +0400 Message-ID: <50F19CB4.6070308@lissyara.su> Date: Sat, 12 Jan 2013 21:26:12 +0400 From: Alex Keda User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 CC: FreeBSD Mailing List Subject: Re: [pkgng] case-sensitive search? References: <50F04B95.3000301@lissyara.su> <50F0686A.9030600@lissyara.su> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Description: if spam count > 60 - this is spam X-Spam-Count: 0 X-Descriptions: powered by www.lissyara.su X-Bounce-ID: mx.lissyara.su X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2013 17:26:14 -0000 12.01.2013 21:20, Chris Rees пишет: > On 11 January 2013 19:30, Alex Keda wrote: >> 11.01.2013 23:05, Chris Rees пишет: >> >>> On 11 January 2013 17:27, Alex Keda 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 defult >>> >>> >>> 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=.... >> >> 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?