dont use "exec " anymore cuz then stuff like && doesn't work
This commit is contained in:
parent
728022e170
commit
0ee5660504
1 changed files with 1 additions and 2 deletions
|
@ -408,11 +408,10 @@ void screen::execCommand(const std::string &cmd) const {
|
||||||
if ((pid = fork()) == 0) {
|
if ((pid = fork()) == 0) {
|
||||||
extern char **environ;
|
extern char **environ;
|
||||||
|
|
||||||
string c = "exec " + cmd;
|
|
||||||
char *const argv[] = {
|
char *const argv[] = {
|
||||||
"sh",
|
"sh",
|
||||||
"-c",
|
"-c",
|
||||||
const_cast<char *>(c.c_str()),
|
const_cast<char *>(cmd.c_str()),
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
// make the command run on the correct screen
|
// make the command run on the correct screen
|
||||||
|
|
Loading…
Reference in a new issue