From a75ac34644408613b0321b48793e446234ac1a3d Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sat, 14 Feb 2015 09:04:55 +0000
Subject: [PATCH] fix

---
 Common/OS.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/Common/OS.cpp b/Common/OS.cpp
index 0572fe5c1f..246f8d23b8 100644
--- a/Common/OS.cpp
+++ b/Common/OS.cpp
@@ -396,8 +396,11 @@ int SystemCallExe(const std::string &exe, const std::string &args, bool blocking
   }
 
   std::string command;
-  if(exe.size()) command.append("\"" + exe + "\"");
-  if(command.size() && args.size()) command.append(" " + args);
+  if(exe.size()){
+    command.append("\"" + exe + "\""); // allows exe with white space
+    if(args.size()) command.append(" ");
+  }
+  command.append(args);
 
 #if defined(WIN32) && !defined(__CYGWIN__)
   if(isPython || isOctave){
-- 
GitLab