3 ms·
On Windows even splitting arguments is done as part of the application (WinMain, for example, gets a single string, which is not something glued together by bel
by formerly_proven 5y ago
On Windows even splitting arguments is done as part of the application (WinMain, for example, gets a single string, which is not something glued together by below-WinMain code but how processes work on Windows, also CreateProcess and other process-creation APIs need a single command line). SSHv2 has a similar quirk where the command line for request_exec is just one string and gets executed using <user's shell> -c <string goes here>, which makes the exact semantics dependent on the shell set for the user. This might have been an attempt at lowest-common-denominator engineering for Windows.
Overall Windows command line is and always was broken and unsound due to being based on the flawed DOS batch model.