From: Dana Jansens Date: Sun, 21 Jul 2002 10:18:12 +0000 (+0000) Subject: dont use "exec " anymore cuz then stuff like && doesn't work X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=0ee5660504b3d55b8fb989241a675af4f925087f;p=chaz%2Fopenbox dont use "exec " anymore cuz then stuff like && doesn't work --- diff --git a/util/epist/screen.cc b/util/epist/screen.cc index 8f9fbe3c..78f3a9d0 100644 --- a/util/epist/screen.cc +++ b/util/epist/screen.cc @@ -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(c.c_str()), + const_cast(cmd.c_str()), 0 }; // make the command run on the correct screen