digitalmars.D.bugs - [Issue 6129] New: dmd -run passes incorrect argv[0] to application
- d-bugmail puremagic.com (26/26) Jun 08 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6129
- d-bugmail puremagic.com (11/11) Feb 09 2013 http://d.puremagic.com/issues/show_bug.cgi?id=6129
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
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