2>$1 is typo for 2>&1, which also works just as well on Win32.
>perl -e"warn qq{stderr};" >out 2>&1 >type out stderr at -e line 1.
Sorry, but you are mistaken in claiming it it works in sh and not in Windows. How is pointing that out nitpicking?
In reply to Re^4: STDERR Redirection problems
by ikegami
in thread STDERR Redirection problems
by darrenbock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |