Google Groups unterstützt keine neuen Usenet-Beiträge oder ‑Abos mehr. Bisherige Inhalte sind weiterhin sichtbar.

diversion of standard error from csh

86 Aufrufe
Direkt zur ersten ungelesenen Nachricht

and...@orca.uucp

ungelesen,
29.06.1983, 18:01:4629.06.83
an

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]

0 neue Nachrichten