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
http://bugs.winehq.org/show_bug.cgi?id=27788
--- Comment #1 from Frédéric Delanoy frederic.delanoy@gmail.com 2011-07-29 06:46:36 CDT --- Tests for ">" and "1>" case integrated in wine: http://source.winehq.org/git/wine.git/commitdiff/011d5c331c8d2ef161e2fda4ea8...
http://bugs.winehq.org/show_bug.cgi?id=27788
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase
http://bugs.winehq.org/show_bug.cgi?id=27788
Frédéric Delanoy frederic.delanoy@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #2 from Frédéric Delanoy frederic.delanoy@gmail.com 2011-08-29 14:21:32 CDT --- Fixed by http://source.winehq.org/git/wine.git/commitdiff/bbdaed2f33157eaf7ac6eefbade...
http://bugs.winehq.org/show_bug.cgi?id=27788
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org 2011-09-09 12:54:59 CDT --- Closing bugs fixed in 1.3.28.