From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 5 01:03:06 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E1F2106564A for ; Thu, 5 Jul 2012 01:03:06 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 5788B8FC0A for ; Thu, 5 Jul 2012 01:03:06 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id q65135ek095210; Thu, 5 Jul 2012 01:03:05 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.143] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id 74mz966bvquqhvh2bcydrhwkdn; Thu, 05 Jul 2012 01:03:05 +0000 (UTC) (envelope-from tim@kientzle.com) Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Tim Kientzle In-Reply-To: <20120704203711.2732b645@bhuda.mired.org> Date: Wed, 4 Jul 2012 18:03:05 -0700 Content-Transfer-Encoding: 7bit Message-Id: <2EA305F0-87D9-47BE-B3E6-366659BF77AF@kientzle.com> 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> To: Mike Meyer X-Mailer: Apple Mail (2.1278) Cc: 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 01:03:06 -0000 On Jul 4, 2012, at 5:37 PM, Mike Meyer wrote: > On Wed, 04 Jul 2012 17:34:13 -0700 > Doug Barton wrote: >>> As a first prototype, the database could just be a text file >>> and the look up program could be a shell script that uses >>> grep and sed. >> Right-O. The db should almost certainly be updated and distributed as >> part of the (already automated) INDEX generation and distribution process. > > There are already tools in the ports tree that do the > search. Personally, I use portsearch. Very close. Unfortunately, portsearch seems to require an installed /usr/ports tree. A system that generated a database and searched that database would be useful also by people who preferred packages over ports. > Tweaking them to use INDEX (or > tweaking the makefile to generate their database with INDEX) should be > straightforward. INDEX can't be used in its current form because it doesn't have filenames (just port names). But yes, a lot of the key pieces already exist in various places. Just need someone to piece it together and make it actually work. I still think this would be a good addition to the base system and would like to see it included in the standard release ISOs so that new FreeBSD users can more quickly find the software they expect. I'm curious whether the earlier objections were due to misunderstandings about auto-install. Auto-install would be problematic, but the feature being discussed here does not require installation. Just better error messages. Tim