How does one redirect just stderr under the C Shell?
Tom Christiansen
tchrist at convex.COM
Fri May 10 00:16:39 AEST 1991
>From the keyboard of willcr at ivy.isc.com:
:In article <1991May08.154738.26889 at convex.com>, tchrist at convex.COM (Tom
:Christiansen) writes:
:>
:> Now, I'm sure someone will suggest
:>
:> ( foo > foo.stdout ) >& foo.stderr
:>
:> but that's not right: stdout is mangled.
:
:How is stdout mangled? Is it because "isatty(fileno(stdout))" will no
:longer be true?
Perhaps stolen would have been a better word choice than mangled.
Let's same it's in a script that's being run like this:
script > script.out
The foo output no longer goes to script.out, where I expect it.
--tom
--
Tom Christiansen tchrist at convex.com convex!tchrist
"So much mail, so little time."
More information about the Comp.unix.wizards
mailing list