Article View: comp.sys.atari.st
Article #5232Which filehandle for stderr?
From: Piet van Oostrum
Date: Wed, 25 Oct 1989 11:07
Date: Wed, 25 Oct 1989 11:07
18 lines
1258 bytes
1258 bytes
Which filehandle should be used for stderr? I have seen compilers that use 2 and others that use -1. If you use 2: you can redirect stderr, but it is not official TOS usage (2 is supposed to be stdaux). So you need a sheel that sets up 2 to default to the console. On the other hand it is Unix compatible. If you use -1: it is TOS standard, compatible with the desktop, but you can't redirect it to a file. So either way you seem to lose. What are your feelings about this? -- Piet van Oostrum, Dept of Computer Science, University of Utrecht Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands. Telephone: +31-30-531806 Internet: piet@cs.ruu.nl Telefax: +31-30-513791 Uucp: uunet!mcsun!hp4nl!ruuinf!piet
Technical Details
Message-ID:
<1739@ruuinf.cs.ruu.nl>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!ruuinf!pietShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!bloom-beacon!eru!luth!sunic!mcsun!hp4nl!ruuinf!piet From: piet@cs.ruu.nl (Piet van Oostrum) Newsgroups: comp.sys.atari.st Subject: Which filehandle for stderr? Message-ID: <1739@ruuinf.cs.ruu.nl> Date: 25 Oct 89 11:07:38 GMT Sender: root@ruuinf.cs.ruu.nl Reply-To: piet@cs.ruu.nl (Piet van Oostrum) Organization: Dept of Computer Science, University of Utrecht, Holland Lines: 18