http://bugs.winehq.org/show_bug.cgi?id=21227
Summary: cmd doesn't echo redirection like native Product: Wine Version: 1.1.35 Platform: x86 OS/Version: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P3 Component: programs AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
Native cmd echoes commands after some canonicalization has been done on their redirects. A batch file containing dir 1> ok dir > bad dir | bad dir > blah > bad echoes as dir 1> ok dir 1> bad dir | bad dir 1> bad (note the extra space inserted before the > or |).
Wine's cmd doesn't currently do this, but it could probably do so without too much trouble; it already collects redirects separately for each command.
For the moment I'll probably put a kludge in the cmd conformance test runner to compensate.