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 773ac74 commit 635c226Copy full SHA for 635c226
include/boost/process/v1/detail/windows/basic_cmd.hpp
@@ -162,7 +162,9 @@ struct exe_cmd_init : handler_base_ext
162
}
163
static exe_cmd_init<Char> exe_args_shell(string_type && exe, std::vector<string_type> && args)
164
{
165
- std::vector<string_type> args_ = {c_arg(Char()), std::move(exe)};
+ std::vector<string_type> args_ = {c_arg(Char())};
166
+ if (!exe.empty())
167
+ args_.emplace_back(std::move(exe));
168
args_.insert(args_.end(), std::make_move_iterator(args.begin()), std::make_move_iterator(args.end()));
169
string_type sh = get_shell(Char());
170
0 commit comments