Escape one argument for a cmd.exe /c command line so the launched program receives it
byte-for-byte. PORTS Rust std append_bat_arg's quote/backslash mechanics; throws (fail closed) for
an argument cmd cannot preserve: a newline (\r/\n) or NUL, or a %NAME% cmd would expand. A lone
% / undefined %NAME% pass.
Escape one argument for a cmd.exe
/ccommand line so the launched program receives it byte-for-byte. PORTS Rust stdappend_bat_arg's quote/backslash mechanics; throws (fail closed) for an argument cmd cannot preserve: a newline (\r/\n) or NUL, or a%NAME%cmd would expand. A lone%/ undefined%NAME%pass.