June 08, 2011 [Issue 6129] New: dmd -run passes incorrect argv[0] to application | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from Robert Clipsham <robert@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: ------- |
February 09, 2013 [Issue 6129] dmd -run passes incorrect argv[0] to application | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | 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 --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-09 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: ------- |
Copyright © 1999-2021 by the D Language Foundation