www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9287] New: DMD should read from stdin when the only input file is "-"

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9287

           Summary: DMD should read from stdin when the only input file is
                    "-"
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: alex lycus.org


--- Comment #0 from Alex Rønne Petersen <alex lycus.org> 2013-01-09 14:44:15
CET ---
This is consistent with behavior in most other language compilers (and tools in
general).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 09 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9287


Alex Rønne Petersen <alex lycus.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alex lycus.org
            Summary|DMD should read from stdin  |DMD should read from stdin
                   |when the only input file is |when an input file is "-"
                   |"-"                         |


--- Comment #1 from Alex Rønne Petersen <alex lycus.org> 2013-01-09 14:46:30
CET ---
Scratch that, it should read from stdin if "-" is one of the input files.
Doesn't have to be the only one.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 09 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9287


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich gmail.com


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-01-10
10:24:49 PST ---
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.
But you can already use RDMD for this via `--eval=code`, why reimplement this
in DMD?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 10 2013