www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6129] New: dmd -run passes incorrect argv[0] to application

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: robert octarineparrot.com



22:28:12 BST ---
The following:
----

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: -------
Jun 08 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6129


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

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



06:22:01 PST ---
args[0] is typically the executable name, not the source name, I don't see how
that's wrong?

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