Bug 15005 – Coverage files start with a dash character when using full pathname for source files with -cov

Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-09-03T09:49:18Z
Last change time
2024-12-13T18:44:26Z
Assigned to
No Owner
Creator
Atila Neves
Moved to GitHub: dmd#19036 →

Comments

Comment #0 by atila.neves — 2015-09-03T09:49:18Z
dmd turns slashes to "-" characters so that foo/bar.d produces a foo-bar.lst file. Unfortunately, if full paths are used, the file ends up being -path-to-my-file.lst, which starts with a dash character and makes it really hard to use the shell to list or do anything with them since they're interpreted as command-line options. The fix would be to ignore leading slashes.
Comment #1 by dlang-bugzilla — 2015-09-04T10:53:10Z
Workaround: use ./-path-to-my-file.lst
Comment #2 by robert.schadek — 2024-12-13T18:44:26Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19036 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB