Anuradha Weeraman dixit:

>"At program start-up, three streams shall be predefined and already open:
>stdin (standard input, for conventional input) for reading, stdout
>(standard output, for conventional output) for writing, and stderr
>(standard error, for diagnostic output) for writing." [1]

Isn’t this what I already found in the online docs?

>[1] - https://austingroupbugs.net/view.php?id=1347#c5161

Ah, a clarification then. Very good! Thanks for spotting this.

>Also, some more elaboration by POSIX on unspecified behavior if the
>standard streams are not open for reading and writing:
>
>"If a standard utility or a conforming application is executed with file
>descriptor 0 not open for reading or with file descriptor 1 or 2 not
>open for writing, the environment in which the utility or application
>is executed shall be deemed non-conforming, and consequently the utility
>or application might not behave as described in this standard." [2]

Ah, good to know; this explicitly confirms that this is not a bug.
I should have looked there.

bye,
//mirabilos
-- 
Gestern Nacht ist mein IRC-Netzwerk explodiert. Ich hatte nicht damit
gerechnet, darum bin ich blutverschmiert… wer konnte ahnen, daß SIE so
reagier’n… gestern Nacht ist mein IRC-Netzwerk explodiert~~~
        (as of 2021-06-15 The MirOS Project temporarily reconvenes on OFTC)

Reply via email to