Salome HOME
Merged from BR_AR
[tools/libbatch.git] / src / Core / Batch_CommunicationProtocol.cxx
index da4d49ce7d7f91d79a46077a497166a08467a1ab..530a5f3765495e98246f67c089a82dd2eb4340f1 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <stdlib.h>
 #include <iostream>
+#include <stdlib.h>
 
 #include <Batch_config.h>
 
@@ -126,9 +127,9 @@ namespace Batch {
     for (unsigned int i=0 ; i<commandArgs.size() ; i++) {
       if (i != 0) commandStr += " ";
 
-      // if the argument contains spaces, we surround it with double quotes
+      // if the argument contains spaces, we surround it with quotes
       if (commandArgs[i].find(' ') != string::npos) {
-        commandStr += string("\"") + commandArgs[i] + "\"";
+        commandStr += string("\'") + commandArgs[i] + "\'";
       } else {
         commandStr += commandArgs[i];
       }