From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 5 18:57:26 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4FC91065673 for ; Thu, 5 Jul 2012 18:57:25 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 4B3598FC16 for ; Thu, 5 Jul 2012 18:57:25 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q65IvKFL078929 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 5 Jul 2012 19:57:21 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q65IvKFL078929 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1341514641; bh=0uGyihxuUnIOHdMKjWfocRgPYZ2KmT1cBOJs8BziGWw=; h=Date:From:To:CC:Subject:References:In-Reply-To:Content-Type: Message-ID:Mime-Version; b=CR+dY5zw37VFSr0Jos/dI11WipbZoowakLvAEj92eTeJskIryumJFvz2hpwO0CXx6 qzDx/gifXpu6/HzyDtMfgfUkV8ykmAvkhwnRehMaels0pr+gS5XH641q6TCyR+W+a7 huBnY44bNOlWyCDkDpVSDdb6PEx7R0OxRI5gph1s= Message-ID: <4FF5E390.9090205@infracaninophile.co.uk> Date: Thu, 05 Jul 2012 19:57:20 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Yuri References: <86bojxow6x.fsf@ds4.des.no> <4FF35864.5030109@FreeBSD.org> <20120704185104.GA42355@DataIX.net> <4FF4B36A.2040608@FreeBSD.org> <20120704180134.7c649e1b@bhuda.mired.org> <4FF4BEED.10103@FreeBSD.org> <20120704225519.GB19945@DataIX.net> <4FF4CAD1.8080804@FreeBSD.org> <20120704234104.GA392@DataIX.net> <8E9DECBB-3D1E-4129-A958-9DB0DF69ECC3@kientzle.com> <4FF4E105.50502@FreeBSD.org> <20120704203711.2732b645@bhuda.mired.org> <2EA305F0-87D9-47BE-B3E6-366659BF77AF@kientzle.com> <20120704214216.29085927@bhuda.mired.org> <2336980A-5AAB-4D45-8177-71609A7B31F7@gmail.com> <4FF5D796.80600@rawbw.com> In-Reply-To: <4FF5D796.80600@rawbw.com> X-Enigmail-Version: 1.4.2 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigF39DE2E711923C758E1C475B" X-Virus-Scanned: clamav-milter 0.97.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_ADSP_ALL,DKIM_SIGNED,T_DKIM_INVALID autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: Jonathan Anderson , Wojciech Puchar , Mike Meyer , freebsd-hackers@freebsd.org Subject: Re: Better error messages for command not found (was Re: Pull in upstream before 9.1 code freeze?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2012 18:57:26 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF39DE2E711923C758E1C475B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 05/07/2012 19:06, Yuri wrote: > It would be useful to have a command that finds the port name(s) by the= > command name when needed though. > Today, for example, while searching for package that has a command > 'svlc' I do 'cd /usr/ports && make search key=3Dsvlc' and it finds noth= ing > instead of finding multimedia/vlc. make search seems to search through > package names, dependency names, but not command names for some reason.= make search uses the INDEX, and that doesn't contain any information about the files installed by ports. Building a file index might be possible, but it would be several times the size of the existing INDEX and take correspondingly longer to generate. Also, you'ld probably want it as a sqlite database or BDB file for performance, rather than plain text. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enigF39DE2E711923C758E1C475B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/145AACgkQ8Mjk52CukIy0lgCfRBxCB/EatupxbgLAGDc7Kqf4 WLUAnjM3aUT6wZENJ70YLoIVJxCkC8iH =aZ3B -----END PGP SIGNATURE----- --------------enigF39DE2E711923C758E1C475B--