2
0
mirror of https://github.com/boostorg/process.git synced 2026-02-01 08:42:15 +00:00

shell fix for windows

This commit is contained in:
klemens-morgenstern
2016-06-13 18:39:59 +02:00
parent 2be02bc406
commit dc19c718f0
2 changed files with 35 additions and 11 deletions

View File

@@ -85,7 +85,7 @@ struct exe_cmd_init : handler_base_ext
}
static exe_cmd_init exe_args_shell(std::string&& exe, std::vector<std::string> && args)
{
std::vector<std::string> args_ = {"/c"};
std::vector<std::string> args_ = {"/c", std::move(exe)};
args_.insert(args_.end(), std::make_move_iterator(args.begin()), std::make_move_iterator(args.end()));
std::string sh = shell().string();
return exe_cmd_init(std::move(sh), std::move(args_));