]> git.armaanb.net Git - gen-shell.git/blobdiff - src/main.cpp
fixed multi-line cmd issue
[gen-shell.git] / src / main.cpp
index 5849c28dbd17cc8cf132fb8606cc412420e288da..b334ce793f1c1a02a50077a2c3b05159f73a9b73 100644 (file)
@@ -79,6 +79,7 @@ int main(int argc, char** argv)
   string root_cmd;
   for (int i = 1; i < argc; ++i) {
     root_cmd +=argv[i];
+    root_cmd += " ";
   }
 
   while (status == 0) {
@@ -102,7 +103,7 @@ int main(int argc, char** argv)
           }
         else {
           string whole_command = root_cmd + " " + command;
-          std::cout << "[" << whole_command << "]\n";
+          // std::cout << "[" << whole_command << "]\n";
           system (whole_command.c_str ());
         }
       }