Bug 12149 – Win RDMD: ".exe" no longer auto-added when -of is used
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
tools
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2014-02-13T00:28:00Z
Last change time
2014-02-13T09:37:00Z
Assigned to
nobody
Creator
bus_dbugzilla
Comments
Comment #0 by bus_dbugzilla — 2014-02-13T00:28:08Z
> rdmd -ofprog prog.d
On 2.064.2 and below, that produces "prog.exe". On 2.065-b3 it produces "prog" with no .exe extension. Then it tries to run "prog.exe" which, if you're lucky doesn't already exist, or if you're unlucky already exists as an older version of your program.
This appears to occur because of the change where RDMD now appends ".tmp" to the -of arg it passes DMD, and then removes the ".tmp" extension after DMD succeeds. DMD sees the ".tmp" extension and therefore decides it doesn't need to auto-add a .exe extension.
Comment #1 by bus_dbugzilla — 2014-02-13T00:45:54Z