We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6232a7 commit 777cfa7Copy full SHA for 777cfa7
cpp-subprocess/subprocess.hpp
@@ -1541,11 +1541,16 @@ inline void Popen::execute_process() noexcept(false)
1541
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
1542
std::wstring argument;
1543
std::wstring command_line;
1544
+ bool first_arg = true;
1545
1546
for (auto arg : this->vargs_) {
1547
+ if (!first_arg) {
1548
+ command_line += L" ";
1549
+ } else {
1550
+ first_arg = false;
1551
+ }
1552
argument = converter.from_bytes(arg);
1553
util::quote_argument(argument, command_line, false);
- command_line += L" ";
1554
}
1555
1556
// CreateProcessW can modify szCmdLine so we allocate needed memory
0 commit comments