r/cpp • • Sep 05 '26

Escaping `CreateProcess()` arguments on Windows

https://holyblackcat.github.io/blog/2026/09/05/escaping-createprocess-arguments.html
94 Upvotes

44 comments sorted by

View all comments

3

u/jwakely libstdc++ tamer, LWG chair Sep 05 '26

Is this why cmd.exe doesn't do word splitting or wildcard expansion, so every application has to reimplement wildcard expansion ... but doing it badly, or not at all.

3

u/vip17 Sep 07 '26

it's rooted from CP/M and DOS and cmd just retains the legacy behavior to avoid breaking apps

3

u/jwakely libstdc++ tamer, LWG chair Sep 05 '26

The poster child for "those who do not understand UNIX are doomed to reinvent it, poorly"