Bug 11609 – Use better substituted characters in coverage output filenames

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2013-11-26T10:27:58Z
Last change time
2024-12-13T18:14:24Z
Assigned to
No Owner
Creator
hsteoh
Moved to GitHub: dmd#18721 →

Comments

Comment #0 by hsteoh — 2013-11-26T10:27:58Z
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.
Comment #1 by robert.schadek — 2024-12-13T18:14:24Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18721 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB