Thread overview
[Issue 9287] DMD should read from stdin when an input file is "-"
Jun 10, 2017
Walter Bright
Jun 10, 2017
Walter Bright
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=9287

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|D1 & D2                     |D2

--
June 09, 2017
https://issues.dlang.org/show_bug.cgi?id=9287

hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh@quickfur.ath.cx

--
June 09, 2017
https://issues.dlang.org/show_bug.cgi?id=9287

hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from hsteoh@quickfur.ath.cx ---
https://github.com/dlang/dmd/pull/6880

--
June 10, 2017
https://issues.dlang.org/show_bug.cgi?id=9287

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #4 from Walter Bright <bugzilla@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.

--
June 10, 2017
https://issues.dlang.org/show_bug.cgi?id=9287

--- Comment #5 from Walter Bright <bugzilla@digitalmars.com> ---
https://github.com/dlang/dmd/pull/6880

--
August 01, 2017
https://issues.dlang.org/show_bug.cgi?id=9287

--- Comment #6 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/7d1813309a8c89c8349672ba37a8c15f9d5a42a2 Fix issue 9287 - implement reading source from stdin.

https://github.com/dlang/dmd/commit/28daf534a405e9a07d42afb8f978d8746be7b89a Merge pull request #6880 from quickfur/stdin

Issue 9287 - Implement -stdin.
merged-on-behalf-of: unknown

--
August 07, 2017
https://issues.dlang.org/show_bug.cgi?id=9287

--- Comment #7 from github-bugzilla@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/7d1813309a8c89c8349672ba37a8c15f9d5a42a2 Fix issue 9287 - implement reading source from stdin.

https://github.com/dlang/dmd/commit/28daf534a405e9a07d42afb8f978d8746be7b89a Merge pull request #6880 from quickfur/stdin

--
August 16, 2017
https://issues.dlang.org/show_bug.cgi?id=9287

--- Comment #8 from github-bugzilla@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/7d1813309a8c89c8349672ba37a8c15f9d5a42a2 Fix issue 9287 - implement reading source from stdin.

https://github.com/dlang/dmd/commit/28daf534a405e9a07d42afb8f978d8746be7b89a Merge pull request #6880 from quickfur/stdin

--