Thread overview
[Issue 19502] windows command line arguments wrongly split
Feb 04, 2020
Dlang Bot
Feb 04, 2020
Rainer Schuetze
Feb 04, 2020
Dlang Bot
Feb 04, 2020
himeix@outlook.com
Feb 04, 2020
Rainer Schuetze
Dec 17, 2022
Iain Buclaw
February 04, 2020
https://issues.dlang.org/show_bug.cgi?id=19502

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@LimiQS created dlang/druntime pull request #2931 "Fix Issue 19502: Implement correct split behavior" fixing this issue:

- Fix Issue 19502 - Implement correct split

https://github.com/dlang/druntime/pull/2931

--
February 04, 2020
https://issues.dlang.org/show_bug.cgi?id=19502

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario@gmx.de

--- Comment #2 from Rainer Schuetze <r.sagitario@gmx.de> ---
I don't see any difference in arguments for D or C++ (VC16). Both produce `C:\test"\blah.exe` for the example in the bug report.

What OS/VC version are you seeing the difference with?

--
February 04, 2020
https://issues.dlang.org/show_bug.cgi?id=19502

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@LimiQS created dlang/druntime pull request #2932 "Fix Issue 19502: Implement correct split behavior" fixing this issue:

- Fix Issue 19502: Implement correct split behavior

https://github.com/dlang/druntime/pull/2932

--
February 04, 2020
https://issues.dlang.org/show_bug.cgi?id=19502

himeix@outlook.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |himeix@outlook.com

--- Comment #4 from himeix@outlook.com ---
(In reply to Rainer Schuetze from comment #2)
> I don't see any difference in arguments for D or C++ (VC16). Both produce `C:\test"\blah.exe` for the example in the bug report.
> 
> What OS/VC version are you seeing the difference with?

I'm on Windows 10 x64 with VC 2019. In a test with the following codes:

int main(string[] argv)
{
    foreach(i; argv)
        writeln(i);

    return 0;
}

The cmd.exe raw displays:

C:\Users\XXX>"C:\Users\XXX\source\repos\test\x64\Debug\"\test.exe
C:\Users\XXX\source\repos\test\x64\Debug\
\test.exe

I reproduced this issue.

--
February 04, 2020
https://issues.dlang.org/show_bug.cgi?id=19502

--- Comment #5 from Rainer Schuetze <r.sagitario@gmx.de> ---
Ah, it only applies to the program itself, not the additional arguments. Thanks for the clarification.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=19502

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P2

--