Bug 18076 – dmd -run should work with `-` (stdin) too
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-12-14T01:22:13Z
Last change time
2017-12-18T22:58:23Z
Keywords
pull
Assigned to
No Owner
Creator
hsteoh
Comments
Comment #0 by hsteoh — 2017-12-14T01:22:13Z
Currently, `dmd -` causes dmd to read source code from stdin and compile it. However, there is currently no way to also specify `-run` to run the resulting executable, because `-run` requires a filename argument, but when stdin is used, `-` isn't a valid filename for -run.
This enhancement request is to propose to modify `-run` so that it works with `-` too.