From owner-freebsd-questions@FreeBSD.ORG Fri Dec 14 02:42:37 2007 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 ACE0B16A418 for ; Fri, 14 Dec 2007 02:42:37 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 775DA13C4E3 for ; Fri, 14 Dec 2007 02:42:37 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.1/8.14.1) with ESMTP id lBE2gZ3k008072; Thu, 13 Dec 2007 19:42:35 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.1/8.14.1/Submit) with ESMTP id lBE2gZHS008069; Thu, 13 Dec 2007 19:42:35 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Thu, 13 Dec 2007 19:42:35 -0700 (MST) From: Warren Block To: Chad Perrin In-Reply-To: <20071214010542.GA19553@demeter.hydra> Message-ID: <20071213192131.Y7985@wonkity.com> References: <20071214010542.GA19553@demeter.hydra> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (wonkity.com [127.0.0.1]); Thu, 13 Dec 2007 19:42:35 -0700 (MST) Cc: FreeBSD Questions Subject: Re: Apparently, csh programming is considered harmful. 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: Fri, 14 Dec 2007 02:42:37 -0000 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