ONM07@DMSWWU1A.BITNET (Julian Reschke) (02/17/90)
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 _____________________________