From owner-freebsd-questions Mon Feb 26 15:59:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nameserver.austclear.com.au (nameserver.austclear.com.au [192.83.119.132]) by hub.freebsd.org (Postfix) with ESMTP id 3D5FE37B4EC for ; Mon, 26 Feb 2001 15:59:16 -0800 (PST) (envelope-from ahl@austclear.com.au) Received: from tungsten.austclear.com.au (tungsten.austclear.com.au [192.168.70.1]) by nameserver.austclear.com.au (8.9.3/8.9.3) with ESMTP id KAA23285; Tue, 27 Feb 2001 10:59:15 +1100 (EST) Received: from tungsten (tungsten [192.168.70.1]) by tungsten.austclear.com.au (8.9.3/8.9.3) with ESMTP id KAA09187; Tue, 27 Feb 2001 10:59:15 +1100 (EST) Message-Id: <200102262359.KAA09187@tungsten.austclear.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: richard childers Cc: freebsd-questions@FreeBSD.ORG Subject: Re: OT: Which programming shell, sh or csh? In-Reply-To: Message from richard childers of "Mon, 26 Feb 2001 06:59:14 -0800." <3A9A6F42.3BAC88A2@pacbell.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 27 Feb 2001 10:59:14 +1100 From: Tony Landells Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Actually, as I recall shell functions weren't introduced until System V (I think they were actually an idea "back-ported" from ksh), so when csh was written they didn't exist. Csh introduced many things that were cool for interactive users: command history; builtins for various things; aliases; a "login only" startup file; ... It's also neat to be able to put stdout and sterr in a file together in one hit, but pretty ugly if you want to redirect them separately. Also I love the sh ability to treat direct stdin and stdout for a loop... Basically, sh stomps all over csh for IO handling. And with the addition of shell functions there is little unique that csh offers for scripting. In my youth I might have coded some csh scripts, but now I wouldn't bother. Tony -- Tony Landells Senior Network Engineer Ph: +61 3 9677 9319 Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 Level 4, Rialto North Tower 525 Collins Street Melbourne VIC 3000 Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message