From f266b2a5d4d5205a8954525ef23871cf2d70a291 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Fri, 18 Dec 2020 00:03:54 +0100 Subject: [PATCH] Use more portable way of suppressing output --- src/macro_utilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macro_utilities.cpp b/src/macro_utilities.cpp index 4259503d..53ddf8a7 100644 --- a/src/macro_utilities.cpp +++ b/src/macro_utilities.cpp @@ -88,7 +88,7 @@ RunExternalCommand::RunExternalCommand(std::string &&command) void RunExternalCommand::run() { GNUC_UNUSED int res; - res = std::system((m_command + " &>/dev/null").c_str()); + res = std::system((m_command + " >/dev/null 2>&1").c_str()); } }