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
{
// 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,