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