www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11890] New: rdmd should read the whole first line if called with --shebang

https://d.puremagic.com/issues/show_bug.cgi?id=11890

           Summary: rdmd should read the whole first line if called with
                    --shebang
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: advmail katamail.com


--- Comment #0 from Andrea Fontana <advmail katamail.com> 2014-01-10 00:27:19
PST ---
When shebang is used on unix systems, only a small part of line is passed to
interpreter (usually just 127 chars). Other chars on first line are discarded.

As suggested by Andrei, "if --shebang is the first argument, rdmd should just 
read the whole first line and exec() a shell with it"

Forum post:
http://forum.dlang.org/thread/zwyeobpebohwsxobdztm forum.dlang.org#post-lan4tt:244me:241:40digitalmars.com

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