[Issue 505] New: rdmd and dmd do not correctly preserve program arguments with spaces.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 14 06:42:28 PST 2006


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

           Summary: rdmd and dmd do not correctly preserve program arguments
                    with spaces.
           Product: D
           Version: 0.173
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: critical
          Priority: P1
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: brunodomedeiros+bugz at gmail.com


rdmd and dmd do not correctly preserve program arguments with spaces. With a
test program that prints args.length and args[1] :

$ test.exe "a b c" d
args.length: 3
args[1]: a b c

$ rdmd test.d "a b c" d
args.length: 5
args[1]: a

$ dmd -run test.d "a b c" d
args.length: 5
args[1]: a

Note: I actually depend on this in some scripts of mine which I use often, and
which this bug breaks in many situations :(


-- 




More information about the Digitalmars-d-bugs mailing list