[Issue 6129] New: dmd -run passes incorrect argv[0] to application

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 8 14:32:44 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6129

           Summary: dmd -run passes incorrect argv[0] to application
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: robert at octarineparrot.com


--- Comment #0 from Robert Clipsham <robert at octarineparrot.com> 2011-06-08 22:28:12 BST ---
The following:
----
#!/usr/bin/env dmd -run
void main(string[] args)
{
    assert(args[0] == "./foo/bar.d");
}
----
When invoked using ./foo/bar.d fails. dmd should propagate the command to the
application, rather than using the module name.

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


More information about the Digitalmars-d-bugs mailing list