dont use "exec " anymore cuz then stuff like && doesn't work

This commit is contained in:
Dana Jansens 2002-07-21 10:18:12 +00:00
parent 728022e170
commit 0ee5660504

View 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