From owner-freebsd-ports@FreeBSD.ORG Sat Jan 12 17:50:38 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 C1238F7F for ; Sat, 12 Jan 2013 17:50:38 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by mx1.freebsd.org (Postfix) with ESMTP id 965991D7 for ; Sat, 12 Jan 2013 17:50:38 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f27so1079834iae.25 for ; Sat, 12 Jan 2013 09:50:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=w3KS5WbLReVBzaeMDQvgILsT/Dvr1tLPAHkyMvgkI9w=; b=a4JPzeqQUagIe9j0Z9VJYo8MjS64fOjGgYH/DFGsoRdeOyQy3jRtkREMpXkUIBLLml /uUS2DYWzA4gl6VHLcSrybh/koo6CMG4bBIktKCg1mVqcbANYpwMRQ2oOAvSv4Pdmxku A0nAVFnvQRsr68K3/IfjPhnrwgrhGf294dWeSlUQWf8HfdBm19Q+IXC+ttWZwBrpGDjp EEmjy58r46KATFGc1jzgVaET1OKKnkyMKvZ5mjcJxBuXT1J9S+/owBmWq3w1Ex7uyP1x E6LQOxZ2vlIc69F5CxYeuH5Khj9HY26aW0L4neOHwPKsuF5NCgYV5dduEhJxBfInPT0s Q/fg== X-Received: by 10.50.178.10 with SMTP id cu10mr2665414igc.75.1358013031861; Sat, 12 Jan 2013 09:50:31 -0800 (PST) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.64.16.73 with HTTP; Sat, 12 Jan 2013 09:50:01 -0800 (PST) In-Reply-To: <50F19CB4.6070308@lissyara.su> References: <50F04B95.3000301@lissyara.su> <50F0686A.9030600@lissyara.su> <50F19CB4.6070308@lissyara.su> From: Chris Rees Date: Sat, 12 Jan 2013 17:50:01 +0000 X-Google-Sender-Auth: 5jt_LNtrBcf9ORAdqliBE_AtNLE Message-ID: Subject: Re: [pkgng] case-sensitive search? To: Alex Keda Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Mailing List 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:50:38 -0000 On 12 January 2013 17:26, Alex Keda wrote: > 12.01.2013 21:20, Chris Rees =D0=C9=DB=C5=D4: > >> On 11 January 2013 19:30, Alex Keda wrote: >>> >>> 11.01.2013 23:05, Chris Rees =D0=C9=DB=C5=D4: >>> >>>> 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 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