From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 5 01:11:19 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 2E6FA1065675 for ; Thu, 5 Jul 2012 01:11:19 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vps.rulingia.com (host-122-100-2-194.octopus.com.au [122.100.2.194]) by mx1.freebsd.org (Postfix) with ESMTP id 944908FC0C for ; Thu, 5 Jul 2012 01:11:18 +0000 (UTC) Received: from server.rulingia.com (c220-239-248-69.belrs5.nsw.optusnet.com.au [220.239.248.69]) by vps.rulingia.com (8.14.5/8.14.5) with ESMTP id q651BFAv031208 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Jul 2012 11:11:16 +1000 (EST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.5/8.14.5) with ESMTP id q651BAXk029288 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 5 Jul 2012 11:11:10 +1000 (EST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.14.5/8.14.5/Submit) id q651BAPr029287; Thu, 5 Jul 2012 11:11:10 +1000 (EST) (envelope-from peter) Date: Thu, 5 Jul 2012 11:11:10 +1000 From: Peter Jeremy To: Mike Meyer Message-ID: <20120705011110.GA27618@server.rulingia.com> References: <4FF35864.5030109@FreeBSD.org> <20120704185104.GA42355@DataIX.net> <4FF4B36A.2040608@FreeBSD.org> <20120704180134.7c649e1b@bhuda.mired.org> <4FF4BEED.10103@FreeBSD.org> <4FF4CA45.7070502@rawbw.com> <4FF4CB54.1060004@FreeBSD.org> <20120704191008.0aa46225@bhuda.mired.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <20120704191008.0aa46225@bhuda.mired.org> X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-hackers@freebsd.org" Subject: Re: install-prompt for missing features (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:11:19 -0000 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2012-Jul-04 19:10:08 -0400, Mike Meyer wrote: >My first thought was to suggest it be a port as well, but I'm not sure >that can be done sanely. The easiest way is probably to implement some form of generic "command not found" hook into sh(1) and tcsh(1) - in interactive mode, if a specific function exists, execute it rather than reporting an error message . The actual functionality to map a command name to a port and suggest it to the user could nten be implemented separately as a port and the user would enable it by adding the appropriate function definition to their .profile/.login/.[t]cshrc files. Note that I'm not currently interested in this functionality and am not volunteering to implement it. --=20 Peter Jeremy --SUOF0GtieIMvvwua Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk/06a4ACgkQ/opHv/APuIdfKgCfSrDHoOGa7sxQQjScRHMscwxU vK8AoIjrCDubpgDUunolPEBvjYYUFgpw =+pZr -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--