in reply to Re: STDERR Redirection problems
in thread STDERR Redirection problems

cmd uses the same syntax to provide the same feature:

>perl -e"warn 'stderr'" 2>stderr >type stderr stderr at -e line 1.

Replies are listed 'Best First'.
Re^3: STDERR Redirection problems
by Anonymous Monk on Feb 14, 2010 at 23:59 UTC
    stderr isn't $1 you nitpicker

      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?

      A reply falls below the community's threshold of quality. You may see it by logging in.