[Issue 9287] DMD should read from stdin when an input file is "-"

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jun 9 18:35:39 PDT 2017


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Andrej Mitrovic from comment #2)
> This is problematic because DMD uses single dash for arguments, if you
> accidentally run DMD with:
> 
> $ dmd -arg1 - arg2 -arg3
> 
> You're going to get some pretty awful error messages if DMD tries to read
> this.


This is normal for Linux. Look at:

   man cat

and there are both - prefixed switches and - meaning read from stdin.

--


More information about the Digitalmars-d-bugs mailing list