From owner-freebsd-questions@FreeBSD.ORG Mon Dec 17 01:57:41 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 764BF16A417 for ; Mon, 17 Dec 2007 01:57:41 +0000 (UTC) (envelope-from msoulier@digitaltorque.ca) Received: from mail.storm.ca (mail.storm.ca [209.87.239.66]) by mx1.freebsd.org (Postfix) with ESMTP id 4E7DC13C4DD for ; Mon, 17 Dec 2007 01:57:41 +0000 (UTC) (envelope-from msoulier@digitaltorque.ca) Received: from kanga.digitaltorque.ca (hs-216-106-102-70.storm.ca [216.106.102.70]) by mail.storm.ca (8.14.0+Sun/8.14.0) with ESMTP id lBH1vTeS011488; Sun, 16 Dec 2007 20:57:37 -0500 (EST) Received: from piglet (unknown [192.168.1.5]) by kanga.digitaltorque.ca (Postfix) with ESMTP id 6F7AF9; Mon, 17 Dec 2007 01:57:24 +0000 (UTC) Received: by piglet (Postfix, from userid 1000) id DA2F2F4007; Sun, 16 Dec 2007 20:57:23 -0500 (EST) Date: Sun, 16 Dec 2007 20:57:23 -0500 From: "Michael P. Soulier" To: Chuck Robey Message-ID: <20071217015723.GE5874@piglet.digitaltorque.ca> Mail-Followup-To: Chuck Robey , freebsd-questions@freebsd.org 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: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BQPnanjtCNWHyqYD" Content-Disposition: inline In-Reply-To: <4765C4A5.4020906@chuckr.org> User-Agent: Mutt/1.5.13 (2006-08-11) 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 01:57:41 -0000 --BQPnanjtCNWHyqYD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 16/12/07 Chuck Robey said: > There;s one item that is much more easily done in csh/tcsh than in the=20 > sh based ones .... that's redirecting the stderr along with the stdout.= =20 > with tcsh, when I do a make, I commonly do a: >=20 > make |& tee makeout >=20 > which causes both the stdout and stderr files to be redirected to the=20 > "makeout" make listing file. I;'ve never figured out any reasonably=20 > simple way to do that in any sh-like shell. Is there any simble way=20 > that you know of? Yup.=20 make 2>&1 | tee makeout Now show me a simple way to redirect them to different files in csh. foo 1>stdout.log 2>stderr.log Mike --=20 Michael P. Soulier "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein --BQPnanjtCNWHyqYD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHZdeDKGqCc1vIvggRAiB0AJsEAaGf9irRUM42iBSFoqfFjrJ8AwCgkuR0 CkCN8KT7M+6d7M2TSeBi5XM= =1Jml -----END PGP SIGNATURE----- --BQPnanjtCNWHyqYD--