in reply to STDERR Redirection problems

2>$1 is bash/csh syntax, on win32 your shell is usually cmd, not bash
$ perl -V:sh sh='cmd /x /c';

Replies are listed 'Best First'.
Re^2: STDERR Redirection problems
by ikegami (Patriarch) on Feb 14, 2010 at 23:43 UTC

    cmd uses the same syntax to provide the same feature:

    >perl -e"warn 'stderr'" 2>stderr >type stderr stderr at -e line 1.
      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.
Re^2: STDERR Redirection problems
by cdarke (Prior) on Feb 15, 2010 at 09:42 UTC
    The Microsoft website is (sometimes) your friend: see here