Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spaces seem to delimit command line arguments #122

Closed
achalpandeyy opened this issue Jan 28, 2024 · 1 comment
Closed

Spaces seem to delimit command line arguments #122

achalpandeyy opened this issue Jan 28, 2024 · 1 comment

Comments

@achalpandeyy
Copy link

I have a simple C++ program

#include <stdio.h>

int main(int argc, char **argv)
{
    printf("argc: %i\n", argc);
    for (int i = 0; i < argc; ++i)
    {
        printf("argv[%i]: %s\n", i, argv[i]);
    }
    return 0;
}

which I compile as cl /nologo /Zi main.cpp

When I run it:

E:\>main.exe -a something_here -b  "something here with spaces"
argc: 5
argv[0]: main.exe
argv[1]: -a
argv[2]: something_here
argv[3]: -b
argv[4]: something here with spaces

While in raddebugger
bug

@ryanfleury
Copy link
Collaborator

Fixed in 1ade5e4. I've also fixed the debugger's lack of support for serializing double quotes in target arguments (and other places) in 3fd9014.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants