Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!genrad!decvax!harpo!floyd!vax135!cornell!uw-beaver!tektronix!tekecs!orca!andrew
From: andrew@orca.UUCP
Newsgroups: net.micro
Subject: Re: diversion of standard error from csh
Message-ID: <1343@orca.UUCP>
Date: Wed, 29-Jun-83 18:01:46 EDT
Article-I.D.: orca.1343
Posted: Wed Jun 29 18:01:46 1983
Date-Received: Thu, 30-Jun-83 16:29:24 EDT
Lines: 23


	The redirection mechanism for stderr in csh isn't too good
	either; you simply CAN NOT send stderr down stdout and redirect
	them both to a pipe!  This means you can't say something like

		make 2>&1 | tee /tmp/makelog

	in the C shell.  Also, you can't redirect stderr other than down
	stdout.

In csh you can send stderr down stdout and redirect them both to a pipe
as follows:

	make |& tee /tmp/makelog

You can redirect stderr other than down stdout as follows:

	(program >stdout.file) >&stderr.file

See how easy?

  -- Andrew Klossner   (decvax!teklabs!tekecs!andrew)  [UUCP]
                       (andrew.tektronix@rand-relay)   [ARPA]