bash can not find most of my commands
Chip Camden
sterling at camdensoftware.com
Tue Feb 22 22:12:32 UTC 2011
Quoth David Brodbeck on Tuesday, 22 February 2011:
> On Tue, Feb 22, 2011 at 12:39 PM, Chad Perrin <perrin at 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.
>
> 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.
--
Sterling (Chip) Camden | sterling at camdensoftware.com | 2048D/3A978E4F
http://chipsquips.com | http://camdensoftware.com | http://chipstips.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20110222/cc662f5a/attachment.pgp
More information about the freebsd-questions
mailing list