http://bugs.winehq.org/show_bug.cgi?id=27788
Summary: cmd misparses > redirection operators when directly preceded by a token ending in 1 or 2 Product: Wine Version: 1.3.24 Platform: x86-64 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: cmd AssignedTo: wine-bugs@winehq.org ReportedBy: frederic.delanoy@gmail.com
On windows,
Command foo file contents (omit the quotes) echo foo> foo 'foo' echo foo > foo 'foo ' echo foo1> foo 'foo1' echo foo 1> foo 'foo ' echo foo2> foo 'foo2' echo foo 2> foo ''
Wine wrongly interprets fooN> (where N=1 or 2) as foo redirected using N>
In a similar vein, "dir2> foo" runs dir and creates an empty foo, while it should fail since dir2 is not a recognized command