From owner-freebsd-questions@FreeBSD.ORG Mon Dec 17 07:46:06 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 6E7E816A418 for ; Mon, 17 Dec 2007 07:46:06 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id EDF5A13C4D1 for ; Mon, 17 Dec 2007 07:46:05 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (dialup120.ach.sch.gr [81.186.70.120]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id lBH7jKY4003748 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 17 Dec 2007 09:45:34 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id lBH7jG8A002449; Mon, 17 Dec 2007 09:45:17 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id lBH7jDeU002448; Mon, 17 Dec 2007 09:45:13 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 17 Dec 2007 09:45:12 +0200 From: Giorgos Keramidas To: Chuck Robey Message-ID: <20071217074512.GA2398@kobe.laptop> References: <20071214010542.GA19553@demeter.hydra> <20071214022529.GA2571@kobe.laptop> <4761F17F.9030908@chuckr.org> <20071214033333.GA3455@kobe.laptop> <20071216232830.GD5874@piglet.digitaltorque.ca> <4765C4A5.4020906@chuckr.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4765C4A5.4020906@chuckr.org> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.951, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.45, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org 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: Mon, 17 Dec 2007 07:46:06 -0000 On 2007-12-16 19:36, Chuck Robey wrote: > Michael P. Soulier wrote: >> On 14/12/07 Giorgos Keramidas said: >>> Tcsh is a fine shell. I'm using it all the time (that's how I found out >>> that a buglet reported by Kris Kennaway a few months ago was indeed a >>> bug which I could reproduce too). >> I always found csh/tcsh aliases annoying, since there are no shell >> functions. >> I also found the shell redirection awkward. > > There;s one item that is much more easily done in csh/tcsh than in the sh > based ones .... that's redirecting the stderr along with the stdout. with > tcsh, when I do a make, I commonly do a: > > make |& tee makeout > > which causes both the stdout and stderr files to be redirected to the > "makeout" make listing file. I;'ve never figured out any reasonably > simple way to do that in any sh-like shell. Is there any simble way > that you know of? Yep, there is a simple way in sh too: make 2>&1 | tee makeout