From owner-freebsd-ports@FreeBSD.ORG Sat Jan 12 17:21:07 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 8C1B1A82 for ; Sat, 12 Jan 2013 17:21:07 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-ia0-f173.google.com (mail-ia0-f173.google.com [209.85.210.173]) by mx1.freebsd.org (Postfix) with ESMTP id 37F06116 for ; Sat, 12 Jan 2013 17:21:06 +0000 (UTC) Received: by mail-ia0-f173.google.com with SMTP id w21so2465509iac.4 for ; Sat, 12 Jan 2013 09:21:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=bZl0Knr8OpDTbJbLtnVbSOQW+SSQIEB0RIyM+bfznuo=; b=fWbaqEQHe0Da5vWOb9jnxcLfbOKUjhXtHX0fMqMaI/IOZkylmWQhjrVbNh2VXdjsX8 tndcDdtW2YfzXagzTUVHm8dowIjKOSvKmRzd8N7pQMH84BGeraVT2Jsi7kIRdFuQt9ad zPu9KCs8lRLSpIfg9zZDhSgt2EZV5dI4p/DPLB0m8HJLBDpAB1k36NpaGCSdr78+4SLW k8vBl1oykKr/F2H4AmWn1KVna9h+MZKTdOaWRGAGb7wbdSKe3qsXXnWx08G0GyJ0BdQ+ qygpFq+IUB/khJ3faTNdTNJLIR8SWtLZIw3QDRqMe0vu95wUTB5NcC6KirU75e19e9/4 zRAg== Received: by 10.50.152.137 with SMTP id uy9mr2549748igb.62.1358011260390; Sat, 12 Jan 2013 09:21:00 -0800 (PST) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.64.16.73 with HTTP; Sat, 12 Jan 2013 09:20:30 -0800 (PST) In-Reply-To: <50F0686A.9030600@lissyara.su> References: <50F04B95.3000301@lissyara.su> <50F0686A.9030600@lissyara.su> From: Chris Rees Date: Sat, 12 Jan 2013 17:20:30 +0000 X-Google-Sender-Auth: DPU7g-g7g2M-LGMBopwj347W3vk Message-ID: Subject: Re: [pkgng] case-sensitive search? To: Alex Keda Content-Type: text/plain; charset=UTF-8 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:21:07 -0000 On 11 January 2013 19:30, Alex Keda wrote: > 11.01.2013 23:05, Chris Rees =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > >> 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 ove= r >>> 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=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 Chris