Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!wivax!decvax!microsof!fluke!ssc-vax!uw-beaver!tektronix!ucbcad!ucbvax!fair From: fair@ucbvax.UUCP Newsgroups: net.micro Subject: Re: Callan Unistar 200 Message-ID: <45@ucbvax.UUCP> Date: Sun, 3-Jul-83 15:04:36 EDT Article-I.D.: ucbvax.45 Posted: Sun Jul 3 15:04:36 1983 Date-Received: Thu, 7-Jul-83 02:07:29 EDT References: <708@rlgvax.UUCP> Lines: 43 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. The syntax for the control flow constructs isn't that much more cryptic than the C shell's (which resembles C's constructs about as much as the Bourne shell's resemble Algol 68's). And people have added history and aliasing mechanisms to the Bourne shell, and job control could be added if somebody is ambitious enough. Face it, there are plenty of reasons to like or dislike both shells - I've found the Bourne shell quite friendly and easy to use. Did the C shell originally support the ability to type control structures (loops, etc.) at the terminal, or the ability to capture the standard output of a command and substitute it back into a command line? Guy Harris Computer Consoles, Inc. Office Systems Group {seismo,mcnc,we13,brl-bmd,allegra}!rlgvax!guy Actually, there is a way to redirect stdout & stderr down a pipe. The syntax is thus: program |& program Neatly consistent with the method of redirecting stdout & stderr to a file, wouldn't you say? Also, a construction that turned up in unix-wizards not too long ago for directing stdout & stderr to different places: (program > stdout) >& stderr I don't know too much about csh's early history (no pun intended!), so I can't answer the question directly, but I imagine, since csh was written as an alternative to to sh, it probably had all the features of sh, with other things thrown in for good measure. The definitive answer would have to come from Bill Joy, of course, since he wrote it. Erik E. Fair ucbvax!fair fair@BERKELEY {ucbvax,amd70}!dual!fair Dual Systems Corporation