[Issue 15005] New: Coverage files start with a dash character when using full pathname for source files with -cov

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Sep 3 02:49:18 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=15005

          Issue ID: 15005
           Summary: Coverage files start with a dash character when using
                    full pathname for source files with -cov
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: atila.neves at gmail.com

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.

--


More information about the Digitalmars-d-bugs mailing list