aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg_paths.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-13 16:17:47 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-13 16:17:47 -0700
commitd02d602090b81e301fcf773d737e0423f5966bf0 (patch)
tree3bf9c19862a21b9da09c8a8c2f59668ac48c08e5 /toolsrc/src/vcpkg_paths.cpp
parent2d94b2198af4fa67d5c3289336b3eb20f8c446ef (diff)
downloadvcpkg-d02d602090b81e301fcf773d737e0423f5966bf0.tar.gz
vcpkg-d02d602090b81e301fcf773d737e0423f5966bf0.zip
System::cmd_execute_and_capture_output() now redirects std::err to std::out
Diffstat (limited to 'toolsrc/src/vcpkg_paths.cpp')
-rw-r--r--toolsrc/src/vcpkg_paths.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/src/vcpkg_paths.cpp b/toolsrc/src/vcpkg_paths.cpp
index cf8161353..84c99c806 100644
--- a/toolsrc/src/vcpkg_paths.cpp
+++ b/toolsrc/src/vcpkg_paths.cpp
@@ -12,7 +12,7 @@ namespace vcpkg
{
static const std::regex re(R"###((\d+)\.(\d+)\.(\d+))###");
- auto rc = System::cmd_execute_and_capture_output(Strings::wformat(LR"(%s 2>&1)", version_cmd));
+ auto rc = System::cmd_execute_and_capture_output(Strings::wformat(LR"(%s)", version_cmd));
if (rc.exit_code != 0)
{
return false;
@@ -55,7 +55,7 @@ namespace vcpkg
static std::vector<fs::path> find_from_PATH(const std::wstring& name)
{
- const std::wstring cmd = Strings::wformat(L"where.exe %s 2>&1", name);
+ const std::wstring cmd = Strings::wformat(L"where.exe %s", name);
auto out = System::cmd_execute_and_capture_output(cmd);
if (out.exit_code != 0)
{