🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #40993

stderr

#40993
From: Julian Reschke
Date: Sat, 17 Feb 1990 05:35
18 lines
1514 bytes
In article <4955.25d2cc93@uwovax.uwo.ca> Eric Smith writes:
> How about this suggestion: if all programmers who use the Atari extended
> argument passing scheme (ARGV=, etc.) also agree that handle 2 should be
> stderr, then startup code could do:
>   if (*argv[0] == 0 && isatty(2)) Fforce(2, -1).
> (This assumes that argv[0] is an empty string if it isn't available, as
> specified by the ANSI standard). This way, ARGV compatible shells can
> redirect stderr to anything at all; non-ARGV compatible shells can redirect
> stderr to a file; and programs still correctly re-direct handle 2 when
> run from the desktop.
Sounds EASY, LOGICAL, PORTABLE etc. If now someone@atari would say:
"Do it this way" this would make a fine standard. At least it's better
than all other proposals.

___________________________ cut here _____________________________________
Julian F. Reschke, Hensenstr. 142, D-4400 Muenster, Phone: ++49 251 861241
eMail: ONM07@DMSWWU1A.BITNET, "Julian Reschke" @ MAUS MS  (++49 251 80386)
____________________ correct me if I'm wrong _____________________________
Technical Details
Message-ID: <9002151347.AA00844@freya.math.dmswwu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!DMSWWU1A.BITNET!ONM07

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!DMSWWU1A.BITNET!ONM07
From: ONM07@DMSWWU1A.BITNET (Julian Reschke)
Newsgroups: comp.sys.atari.st
Subject: stderr
Message-ID: <9002151347.AA00844@freya.math.dmswwu>
Date: 17 Feb 90 05:35:39 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 18
X-Unparsable-Date: Thu, 15 Feb 90 14:47:54 MEZ