From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 5 12:04:25 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 627AD106566B for ; Thu, 5 Jul 2012 12:04:25 +0000 (UTC) (envelope-from ryao@gentoo.org) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by mx1.freebsd.org (Postfix) with ESMTP id 2B8978FC0A for ; Thu, 5 Jul 2012 12:04:25 +0000 (UTC) Received: from [192.168.1.2] (pool-72-89-250-138.nycmny.fios.verizon.net [72.89.250.138]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: ryao) by smtp.gentoo.org (Postfix) with ESMTPSA id 7EB091B40C7 for ; Thu, 5 Jul 2012 12:04:23 +0000 (UTC) Message-ID: <4FF58257.4040301@gentoo.org> Date: Thu, 05 Jul 2012 08:02:31 -0400 From: Richard Yao User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120628 Thunderbird/10.0.5 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <4FF2E00E.2030502@FreeBSD.org> <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> <9fab855109ce448d89081b2ad8e5adc8@HUBCAS2.cs.stonybrook.edu> In-Reply-To: <9fab855109ce448d89081b2ad8e5adc8@HUBCAS2.cs.stonybrook.edu> X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4205A80AAA2ED048D9E6ACDB" Subject: Gentoo Solution to Nanny Terminal Problem 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 12:04:25 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4205A80AAA2ED048D9E6ACDB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 07/05/2012 02:10 AM, Warner Losh wrote: >=20 > On Jul 4, 2012, at 4:08 PM, Doug Barton wrote: >=20 >> On 07/04/2012 15:01, Mike Meyer wrote: >>> On Wed, 04 Jul 2012 14:19:38 -0700 >>> Doug Barton wrote: >>>> On 07/04/2012 11:51, Jason Hellenthal wrote: >>>>> What would be really nice here is a command wrapper hooked into the= >>>>> shell so that when you type a command and it does not exist it pres= ents >>>>> you with a question for suggestions to install somewhat like Fedora= has >>>>> done. >>>> I would also like to see this feature, which is pretty much universa= l in >>>> linux at this point. It's very handy. >>> >>> I, on the other hand, count it as one of the many features of Linux >>> that make me use FreeBSD. >> >> First, I agree that being able to turn it off should be possible. But = I >> can't help being curious ... why would you *not* want a feature that >> tells you what to install if you type a command that doesn't exist on >> the system? >=20 > Because I find on Linux it often gets it wrong and winds up being usele= ss noise. Mostly, though, it is because I mistype commands more than I t= ype commands that should be there, but aren't. It might be useful to adapt a concept from Gentoo's app-portage/pfl package. It has two components. The first is a cron job that runs weekly. It will report all files installed by portage and which packages own them to an online database. The second is the e-file command, which will query that database for whatever follows it. For example, if I want to find out which package installs repoman, I can do `e-file repoman`. I can also do `e-file /usr/bin/repoman`. if FreeBSD had an equivalent to this command, this command, then I imagine that calls for Ubuntu/Fedora features should cease. Gentoo users seem to be happy with e-file. --------------enig4205A80AAA2ED048D9E6ACDB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJP9YJZAAoJECDuEZm+6ExkbJgP/3YyexYYyl8d7E5hqXrbQ1t8 FU6BAPoGqPUy1206oalVvTDoA9jjTjfQxqT5P3x7w8CqjxC7B5ngOOkYMAM43lEw RO4WOiw8eFp3mBfg0mpKaNTWT6ydICPEVXuvW+u2I+J5A7iEky2zUuNfablF0Htv 2KZEgE6iTMZMA913sBsi9ZVn9/vr2xJsbG3vtYCZ7HZWw6RcaoAnQL3x4tbmSnIW HAvt/ak6HFiFsTvmzuCmlsVNj6olJN+IvgA7eelH3p+BXk50BTuvIVkkzKrcsiPq JEsW+hT7pRKR8lKgENePPqoxiAh1igSBgjndV4J2N6rnHP5ufQIihNQlaCn9E4bK BL2x+crhuloE9BMYETU11BLvU5smFqmMm1R3+XC08sx7ae894FObanFwXLBETByZ ZxkB9rzUErKxsItvXAHnWc+siY1PO1F56lJxAyv82UWlapbb9pnSK/UV/SEHaA6e TTQmzJGC/nc3kJHO8eX5sMeJ/eSHc795xxJ123FasJeNY6Yb0bToo3AnhXDyIyuw cYnKgGWrGQ3gFhe+MnlkhhDP9H932xZ7E8ZSndpwQJgd1jgGr3w5dVUrAyZcwp+9 t/EsoSUGqjwTxoWyHX5tMVlGDMRUCI8h+Q9e9Lo0tA3jwV2wkPskXwy3P4ZirQed ue4Xp1Gx8gP0faTBT2nn =i0dK -----END PGP SIGNATURE----- --------------enig4205A80AAA2ED048D9E6ACDB--