3 ms·
How? Wouldn't the program's argv see the same string with and without quotes? Or is that just a *nix thing?
by adtac 5y ago
How? Wouldn't the program's argv see the same string with and without quotes? Or is that just a *nix thing?
- schroeding 5y agocd is a built-in of the shell / cmd, not an application, it does not use argv, AFAIK. It should, as you said, not work for normal applications
- johnny22 5y agonope. I read an article about this when i accidentally broke the arg parsing for wildcards. worked fine in linux, but not on windows :(
- int_19h 5y agoIn Win32, argv is not part of the OS process API. The processes get the entire command line as a string, and have to parse it themselves - or, more commonly, leave it up to the C runtime. But in this case, I don't think it matters.
- DrBazza 5y agoThis is interesting regarding args. https://nullprogram.com/blog/2022/02/18/ https://nullprogram.com/blog/2022/02/18/