summaryrefslogtreecommitdiff
path: root/util/epist/screen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'util/epist/screen.cc')
-rw-r--r--util/epist/screen.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/epist/screen.cc b/util/epist/screen.cc
index 78f3a9d0..8f9fbe3c 100644
--- a/util/epist/screen.cc
+++ b/util/epist/screen.cc
@@ -408,10 +408,11 @@ 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 *>(cmd.c_str()),
+ const_cast<char *>(c.c_str()),
0
};
// make the command run on the correct screen