Apparently, csh programming is considered harmful.
Michael P. Soulier
msoulier at digitaltorque.ca
Sun Dec 16 17:57:41 PST 2007
On 16/12/07 Chuck Robey said:
> There;s one item that is much more easily done in csh/tcsh than in the
> sh based ones .... that's redirecting the stderr along with the stdout.
> with tcsh, when I do a make, I commonly do a:
>
> make |& tee makeout
>
> which causes both the stdout and stderr files to be redirected to the
> "makeout" make listing file. I;'ve never figured out any reasonably
> simple way to do that in any sh-like shell. Is there any simble way
> that you know of?
Yup.
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
--
Michael P. Soulier <msoulier at digitaltorque.ca>
"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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20071217/447564d5/attachment.pgp
More information about the freebsd-questions
mailing list