In article <
[email protected]>,
Kaz Kylheku <
[email protected]> wrote:
On 2022-02-21, Kenny McCormack <[email protected]> wrote:
But again, my real, underlying question is: How well understood is it what >> Windows does?
It's perfectly well understood. In Windows, the command line is a single >character string, which the target process must parse to retrieve
arguments. This requires escaping in order to represent significant
spaces, and literal escapes and so it goes. It creates problems due to >subtle differences in the algorithms, in their handling of escapes.
Thanks for your response. It explains well the sorry state of the world.
So, what it boils down to is that, as has always been the case with DOS,
it is up to the application to parse the command line, and each/any
application could do it differently.
*If* the application was compiled with MSVC, then it should conform to the
"de facto standard" that you've outlined, but "should" doesn't always mean "does".
But, in any case, it seems clear that passing something like:
"foo""bar"
does get parsed as two args: foo & bar.
It would be nice if there was a way to figure out which compiler was used
to compile a given application - and from that, to determine exactly how
that compiler does its parsing.
--
So to cure the problem of arrogant incompetent rich people we should turn
the government over to an arrogant incompetent trust fund billionaire
who knows nothing about government and who has never held a job in his
entire spoiled life?
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)