From 82e8b0ad6c74e1bc6cf534348304e82beb898ecf Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 19 Mar 2013 15:43:32 +0000 Subject: [PATCH] Add missing space to fix r73681 changes. We need a space between the command and stderr redirection to avoid the "2" from being taken as part of the last option on the command line. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/utilsunx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 5b6caba63c..bba1eb7be5 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -846,7 +846,7 @@ static wxString wxGetCommandOutput(const wxString &cmd) { // Suppress stderr from the shell to avoid outputting errors if the command // doesn't exist. - FILE *f = popen((cmd + "2>/dev/null").ToAscii(), "r"); + FILE *f = popen((cmd + " 2>/dev/null").ToAscii(), "r"); if ( !f ) { // Notice that this doesn't happen simply if the command doesn't exist, -- 2.47.2