http://bugs.winehq.org/show_bug.cgi?id=33638
Bug #: 33638 Summary: wine cmd wrong extracting of command line arguments while using "%~1" Product: Wine Version: 1.5.30 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd AssignedTo: wine-bugs@winehq.org ReportedBy: loentar@gmail.com Classification: Unclassified
1. wine cmd extracts "%~1" as is when no argument passed to command file, but must extract as empty string.
2. "%~1" must remove any quotation marks from arguments, but wine cmd leave it unchanged.
example: test.cmd
---- echo "%~1" ----
start under winxp:
----
test.cmd 1
"1"
test.cmd "1"
"1"
test.cmd
"" ----
start under wine cmd:
----
test.cmd 1
"1"
test.cmd "1"
""1""
test.cmd
"%~1" ----
for reference see this topic: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-...