Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!visdc!jiii From: jiii@visdc.UUCP (John E Van Deusen III) Newsgroups: comp.unix.wizards Subject: Re: What \"isatty\"? Message-ID: <549@visdc.UUCP> Date: 26 May 89 23:06:24 GMT References: <19756@adm.BRL.MIL> Reply-To: jiii@visdc.UUCP (John E Van Deusen III) Organization: VI Software Development, Boise, Idaho Lines: 27 In article <19756@adm.BRL.MIL> rbj@dsys.icst.nbs.gov (Root Boy Jim) writes: > > I agree completely, Chris. Now get cracking on `cc', so that > `cc prog.c' writes to stdout instead of `a.out' :-) $ cat xxx > xxx cat: input xxx is output Oh thank you for saving me from my stupid error Mr. cat(1)! I guess I am under too much pressure to finish this work before the deadline. $ cat xxx $ Mere humans can not be trusted to I/O redirection. It is simply a matter of time until even the best and brightest of us screw up. To efficiently use Unix, the standard output has to be redirected, but if at all possible, the place to redirect the output is within the executable: ... test $STATUS = $COPACETIC && exec 1>precious.dat ... -- John E Van Deusen III, PO Box 9283, Boise, ID 83707, (208) 343-1865 uunet!visdc!jiii