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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 10 00:27:21 PST 2014


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 at puremagic.com
        ReportedBy: advmail at katamail.com


--- Comment #0 from Andrea Fontana <advmail at 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: -------


More information about the Digitalmars-d-bugs mailing list