Currently, if AreOutputAndErrorSameTarget() is true, does it matter which write API one uses in this case, e.g. WriteOutput(Buffer) and/or WriteError(Buffer)?

In shells it is possible to redirect stdout to stderr ("program >stdout_data.txt 2>&1"), but also the other way around, hence stderr to stdout ("program 2>stderr_data.txt 1>&2").  Is it possible to distinguish the two from each other? E.g. if AreOutputAndErrorSameTarget()=true, then IsOutputRedirected()=true means to use WriteError(Buffer), and if it is false then IsErrorRedirected()=true and one needs to use WriteOutput(Buffer) (and vice versa)?

---rony




_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to