http://bugs.winehq.org/show_bug.cgi?id=18154
Summary: cmd.exe: failure to handle file extension association Product: Wine Version: 1.1.19 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P4 Component: programs AssignedTo: wine-bugs@winehq.org ReportedBy: swelef@post.sk
cmd.exe doesn't handle extension association.
Test case: Install ActivePerl, create a dummy perl script test.pl and run wine cmd /c test.pl cmd.exe will try to run test.pl as Unix binary trace:process:CreateProcessW starting L"C:\\test.pl" as Unix binary and (probably) fail instead of running Perl.exe as the Windows XP command cmd /c perl.pl
Source code analysis: The function programs/cmd/wcmdmain.c:WCMD_run_program calls FindExecutable but mostly ignores the result. This looks like an unfinished work.
Remark: Theoretically, some program could rely on the association. As long as such program is not known, this is a low priority issue. Users should prefer the explicit command wine perl test.pl (or "wine start /W test.pl" if they want a new console).