From owner-freebsd-questions@FreeBSD.ORG Tue Feb 22 22:12:32 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 7625C106564A for ; Tue, 22 Feb 2011 22:12:32 +0000 (UTC) (envelope-from sterling@camdensoftware.com) Received: from wh2.interactivevillages.com (wh2.interactivevillages.com [75.125.250.34]) by mx1.freebsd.org (Postfix) with ESMTP id 3965D8FC14 for ; Tue, 22 Feb 2011 22:12:32 +0000 (UTC) Received: from c-24-22-230-24.hsd1.wa.comcast.net ([24.22.230.24] helo=_HOSTNAME_) by wh2.interactivevillages.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Ps0T3-0006fn-30 for freebsd-questions@freebsd.org; Tue, 22 Feb 2011 14:12:26 -0800 Received: by _HOSTNAME_ (sSMTP sendmail emulation); Tue, 22 Feb 2011 14:12:26 -0800 Date: Tue, 22 Feb 2011 14:12:26 -0800 From: Chip Camden To: freebsd-questions@freebsd.org Message-ID: <20110222221226.GA2365@libertas.local.camdensoftware.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <4D63E6F2.3050008@alokat.org> <4D63E92C.4060304@ifdnrg.com> <4D63EB2E.3080200@alokat.org> <20110222175313.GD3027@guilt.hydra> <20110222203906.GA3608@guilt.hydra> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Company: Camden Software Consulting URL: http://camdensoftware.com X-PGP-Key: http://pgp.mit.edu:11371/pks/lookup?search=0xD6DBAF91 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - wh2.interactivevillages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - camdensoftware.com 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 22:12:32 -0000 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoth David Brodbeck on Tuesday, 22 February 2011: > On Tue, Feb 22, 2011 at 12:39 PM, Chad Perrin wrote: > > Just do us all a favor; don't write code in bash. What's with all the bash bashing? Sorry, couldn't resist. >=20 > Yeah, I try to avoid bash-specific syntax unless it's for one-off > scripts. csh suffers the same kinds of problems; I only write csh > code under extreme duress, like when forced to maintain the > system-wide csh.login script. ;) At least sh scripts will execute correctly under bash -- they don't always under csh/tcsh. I like zsh for a command-line shell, but when writing scripts for general usage I stick with the sh-compatibile subset of capabilities, and I enforce that on myself with the #!/bin/sh shebang. If I need more than what that can gracefully do, I usually run to the arms of Ruby. --=20 Sterling (Chip) Camden | sterling@camdensoftware.com | 2048D/3A978E4F http://chipsquips.com | http://camdensoftware.com | http://chipstips.com --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQEcBAEBAgAGBQJNZDTKAAoJEIpckszW26+RPOYH/2uYPgElt0Lp18WjX+hApzUc 0gPf2AYP6HdYECO5houB9pL0d2Q5DSBt+xamKCq7WCK4SamTUZPOUnUQKljjwh6I UbtR3Qlc/nXc5z81BOBqTYT8LHTWXFAUGmOfEceif94UGUaOOyrwiNkQhqfR4vQT 6x6eb86c8wacx/h1+bF2Wv+Ei7VE0CK1X24lXlWkqaPoIx6Dn/tMPNA8DbxYegKS TOoVxv/j1fBJveIysQyS68vhPJYuPp3qw11D5MwBgVvflSQB8SpiFbjDtaQCSxn/ etu9xk9lkMqzQbpE/kdC+YbeL/LkRx5+/xiAxBS++EIiRnPoLi7NJl9HsaZGnOo= =VpHZ -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--