From 0ee5660504b3d55b8fb989241a675af4f925087f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 21 Jul 2002 10:18:12 +0000 Subject: [PATCH] dont use "exec " anymore cuz then stuff like && doesn't work --- util/epist/screen.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.2