From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 5 00:37:19 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AE7C6106564A for ; Thu, 5 Jul 2012 00:37:19 +0000 (UTC) (envelope-from mwm@mired.org) Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) by mx1.freebsd.org (Postfix) with ESMTP id 4BD9D8FC0C for ; Thu, 5 Jul 2012 00:37:19 +0000 (UTC) Received: by qabg1 with SMTP id g1so3649051qab.13 for ; Wed, 04 Jul 2012 17:37:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:organization :x-mailer:face:mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=7sqcMsVbIrvlz7thfR7O1zih1mhrLmr35xi6vPJZMXs=; b=D/m/mgQR94sKR9pjbO5S/mfSKIWvLP6UHK1u+1fOtPVt/ZerLiuIjf/oSPFu/Ws42D ANGGX5DTOv5yU5OP4GsWmWV6TymeQJceaJm9DCBuDqUFobqrw54vwpo/wvtkhWvji3Nu qf+VANxvhzXgmPohu2qPh2AwOIavQBKAmkKGRJ6beQnQurzY+YkC2humCdqPr0Co64z3 ZDDJeCin46LT6oKtTI3p0M40n6CWrZzppSDGQG76wAKrLsWD0Jr/QzZQ7IhZLnNDB/q5 Rh+EGlQ4I2qdjCxxRnT6wmfn5QqCVWgxO7g1l040CIITSOkiOC9D4gkFZ98jp6ig0LtX sWBw== Received: by 10.224.77.19 with SMTP id e19mr41717228qak.49.1341448638200; Wed, 04 Jul 2012 17:37:18 -0700 (PDT) Received: from bhuda.mired.org (74-140-201-117.dhcp.insightbb.com. [74.140.201.117]) by mx.google.com with ESMTPS id ds8sm35733421qab.18.2012.07.04.17.37.15 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Jul 2012 17:37:18 -0700 (PDT) Date: Wed, 4 Jul 2012 20:37:11 -0400 From: Mike Meyer To: Message-ID: <20120704203711.2732b645@bhuda.mired.org> In-Reply-To: <4FF4E105.50502@FreeBSD.org> 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> Organization: Meyer Consulting X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd8.3) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmqGk2rpQUBEJ+JfcWHH/EDgD58Fnf1q+m9fNh5pAQ+cWVRSIELQOP2K0iX5ZAIbymRvPHz Cc: 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 00:37:19 -0000 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. Tweaking them to use INDEX (or tweaking the makefile to generate their database with INDEX) should be straightforward. http://www.mired.org/ Independent Software developer/SCM consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org