Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2007 19:42:35 -0700 (MST)
From:      Warren Block <wblock@wonkity.com>
To:        Chad Perrin <perrin@apotheon.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Apparently, csh programming is considered harmful.
Message-ID:  <20071213192131.Y7985@wonkity.com>
In-Reply-To: <20071214010542.GA19553@demeter.hydra>
References:  <20071214010542.GA19553@demeter.hydra>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 13 Dec 2007, Chad Perrin wrote:

> I ran across this today:
>
>  http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/
>
> Title:
>  Csh Programming Considered Harmful
>
> I wonder what responses I might get here, and how much of this applies to
> tcsh as well (I'm still not exactly a tcsh expert).

I like csh/tcsh as a shell, but don't use it to run scripts.

/bin/sh is the One True Shell Script Interpreter; heathen bashisms are 
just as bad as csh constructs.

When you can't use a higher-level language (Perubython), use shell 
scripts.  But stick to plain sh, because if it's useful you'll probably 
end up having to convert it to sh anyway.

-Warren Block * Rapid City, South Dakota USA



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