From owner-freebsd-questions@FreeBSD.ORG Tue Feb 22 20:49:48 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75B03106564A for ; Tue, 22 Feb 2011 20:49:48 +0000 (UTC) (envelope-from perrin@apotheon.com) Received: from cpoproxy3-pub.bluehost.com (cpoproxy3-pub.bluehost.com [67.222.54.6]) by mx1.freebsd.org (Postfix) with SMTP id 3CBE08FC13 for ; Tue, 22 Feb 2011 20:49:48 +0000 (UTC) Received: (qmail 28569 invoked by uid 0); 22 Feb 2011 20:49:47 -0000 Received: from unknown (HELO box543.bluehost.com) (74.220.219.143) by cpoproxy3.bluehost.com with SMTP; 22 Feb 2011 20:49:47 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=apotheon.com; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:References:Mime-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent:X-Identified-User; b=FNAteZ+0vqXQa4iL4Opvy+/46KeTtHzULBEH8rj7OTx2BdIOlD4iyrcTlaMIzolUwDF6JYLbjswzOE2fE1wYHabERDvOfD1lFK1Pi1sK9N6x7Rnk0brrs4u14vriciXc; Received: from c-24-8-180-234.hsd1.co.comcast.net ([24.8.180.234] helo=kukaburra.hydra) by box543.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1PrzB4-0006NA-Cj for freebsd-questions@freebsd.org; Tue, 22 Feb 2011 13:49:47 -0700 Received: by kukaburra.hydra (sSMTP sendmail emulation); Tue, 22 Feb 2011 13:39:06 -0700 Date: Tue, 22 Feb 2011 13:39:06 -0700 From: Chad Perrin To: freebsd-questions@freebsd.org Message-ID: <20110222203906.GA3608@guilt.hydra> Mail-Followup-To: freebsd-questions@freebsd.org References: <4D63E6F2.3050008@alokat.org> <4D63E92C.4060304@ifdnrg.com> <4D63EB2E.3080200@alokat.org> <20110222175313.GD3027@guilt.hydra> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Identified-User: {2737:box543.bluehost.com:apotheon:apotheon.org} {sentby:smtp auth 24.8.180.234 authed with ren@apotheon.org} Subject: Re: bash can not find most of my commands X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2011 20:49:48 -0000 --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 22, 2011 at 10:07:54AM -0800, David Brodbeck wrote: > On Tue, Feb 22, 2011 at 9:53 AM, Chad Perrin wrote: >=20 > It turns out auto-completion with hinting and command history > searching are pretty addictive if you're used to having them. :) I have auto-completion, and I know my environment well enough that hints aren't generally helpful. >=20 > Personally, I usually just use sudo, or run bash as my first command > after gaining root powers. But it's very interesting to finally find > out what "toor" is for. I'd always wondered. Glad to be of some help. Just do us all a favor; don't write code in bash. Use Bourne shell (sh, not bash), or a "real" programming language (Perl, Ruby, Python, whatever). The bash option essentially tries to capture the power of such "real" languages, but does a very bad job of it -- and gives up the nigh-universal portability across Unix-like systems to do so. It's the worst of all worlds. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk1kHuoACgkQ9mn/Pj01uKUXBACgn8O8YjLLZ68gyttrvzrlBOlf eJUAnj6Ri1MZy1fC489phASTSTZh5Fh/ =5rg8 -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24--