in reply to Re: How to detect I/O redirection on Win32in thread How to detect I/O redirection on Win32
>perl -le"print fileno(STDOUT); print fileno(STDERR);" 2>&1 1 2 [download]