Commit d9749c81 authored by Dominik Gabi's avatar Dominik Gabi Committed by Facebook Github Bot

escape `{` in cmd for deprecated `Substring(std::string...)`

Summary:
Since `shellify` interprets the command as a format string we need to escape
`{` and `}`.

Reviewed By: ldemailly, simpkins

Differential Revision: D3874605

fbshipit-source-id: f47db387c3a44a3ba1c0c1d4726b7212fcb5ef3e
parent 42ca5613
......@@ -184,7 +184,7 @@ Subprocess::Subprocess(
throw std::invalid_argument("usePath() not allowed when running in shell");
}
auto argv = shellify(cmd);
std::vector<std::string> argv = {"/bin/sh", "-c", cmd};
spawn(cloneStrings(argv), argv[0].c_str(), options, env);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment