You should not be printing errors and warnings to both channels in the first place.
By doing so, you are preventing the user from ignoring them, and that is presumptive.
Only write errors and warnings to STDERR and allow the user to decide whether they wish to redirect them or ignore them, and then your question becomes moot or mute or irrelevant.
In reply to Re: How to detect I/O redirection on Win32
by BrowserUk
in thread How to detect I/O redirection on Win32
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |