digitalmars.D.bugs - [Issue 13989] New: add system-specific ext to -of parameter if ext
- via Digitalmars-d-bugs (31/31) Jan 15 2015 https://issues.dlang.org/show_bug.cgi?id=13989
https://issues.dlang.org/show_bug.cgi?id=13989 Issue ID: 13989 Summary: add system-specific ext to -of parameter if ext is invalid Product: D Version: D2 Hardware: x86 OS: All Status: NEW Severity: enhancement Priority: P1 Component: DMD Assignee: nobody puremagic.com Reporter: bb.temp gmx.com consider the following cases: 1) dmd myfile.d -ofprogram DMD produces the file "program.exe" 2) dmd myfile.d -ofprogram.exe DMD produces the file "program.exe" 3) dmd myfile.d -ofprogram.cool DMD produces the file "program.cool" 4) dmd myfile.d -ofprogram.cool.exe DMD produces the file "program.cool.exe" In the third case, DMD should produce the file "program.cool.exe" Currently it seems that DMD looks for any extension and doesn't add one if a dot is found. However a filename can include many dots, it's a legal syntax. DMD should compare the extension found with the one expected (according to the other switches, such as -lib) and then add the expected one if they are different. --
Jan 15 2015