Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2011 14:12:26 -0800
From:      Chip Camden <sterling@camdensoftware.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: bash can not find most of my commands
Message-ID:  <20110222221226.GA2365@libertas.local.camdensoftware.com>
In-Reply-To: <AANLkTiko9sO94=g_JFRimRO-4qXPK5DFEKWF47vjmBYy@mail.gmail.com>
References:  <4D63E6F2.3050008@alokat.org> <4D63E92C.4060304@ifdnrg.com> <4D63EB2E.3080200@alokat.org> <20110222175313.GD3027@guilt.hydra> <AANLkTimXgCDtS6BdjH4xXW6Bebro2vn6U5azoK3ikhDP@mail.gmail.com> <20110222203906.GA3608@guilt.hydra> <AANLkTiko9sO94=g_JFRimRO-4qXPK5DFEKWF47vjmBYy@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <perrin@apotheon.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110222221226.GA2365>