mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
On real Windows, cmd.exe changed arguments that the SDK passed through it. `a & b` arrived as `a ^& b`, `"quoted"` lost its quotes, and `%PATH%` expanded. A .cmd launcher in `C:\Program Files (x86)` could not start, because its path gained `^(x86^)`. Each argument is now quoted for the program and every cmd.exe metacharacter is escaped, twice for a .cmd or .bat file that forwards its arguments with `%*`. The executable path keeps plain quotes.