[Issue 13989] New: add system-specific ext to -of parameter if ext is invalid

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jan 15 23:06:41 PST 2015


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 at puremagic.com
          Reporter: bb.temp at 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.

--


More information about the Digitalmars-d-bugs mailing list