]> Dogcows Code - chaz/openbox/commitdiff
dont use "exec " anymore cuz then stuff like && doesn't work
authorDana Jansens <danakj@orodu.net>
Sun, 21 Jul 2002 10:18:12 +0000 (10:18 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 21 Jul 2002 10:18:12 +0000 (10:18 +0000)
util/epist/screen.cc

index 8f9fbe3c02605483caf76fa5399c93b006c9bec3..78f3a9d0805b5c2a21707685075ce8552cc3b0cb 100644 (file)
@@ -408,11 +408,10 @@ void screen::execCommand(const std::string &cmd) const {
   if ((pid = fork()) == 0) {
     extern char **environ;
 
-    string c = "exec " + cmd;
     char *const argv[] = {
       "sh",
       "-c",
-      const_cast<char *>(c.c_str()),
+      const_cast<char *>(cmd.c_str()),
       0
     };
     // make the command run on the correct screen
This page took 0.027391 seconds and 4 git commands to generate.