www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11609] New: Use better substituted characters in coverage output filenames

https://d.puremagic.com/issues/show_bug.cgi?id=11609

           Summary: Use better substituted characters in coverage output
                    filenames
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: hsteoh quickfur.ath.cx


--- Comment #0 from hsteoh quickfur.ath.cx 2013-11-26 10:27:58 PST ---
Currently, if dmd -cov is invoked on an absolute pathname, e.g.,
/mnt/1/src/mysource.d, then when you run the program, it produces the coverage
report in a file named -mnt-1-src-mysource.d.

The use of '-' here as a substitute character for '/' is unfortunate, because
it interacts badly with Unix tools. E.g., you have to type:

    rm -- -mnt-1-src-mysource.d

instead of just:

    rm -mnt-1-src-mysource.d

because the initial '-' gets misinterpreted as an option.

Suggestion: use '_' instead of '-' as the substitute character.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 26 2013