diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-08-01 07:25:25 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-08-01 07:25:25 +0000 |
| commit | 79916c273dcce6afb5ba7f395e427ce3fa376dfd (patch) | |
| tree | c996ddf86d56d5aced46183529a51ae1614d2283 | |
| parent | 25a18140fad2f111ce681cef90be6c13ae6e8996 (diff) | |
remove the "exec " from the command for running menu stuff so that normal shell things work right in the menu
| -rw-r--r-- | src/Util.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Util.cc b/src/Util.cc index 3c494901..6e2ea152 100644 --- a/src/Util.cc +++ b/src/Util.cc @@ -169,13 +169,11 @@ void bexec(const string& command, const string& displaystring) { setsid(); int ret = putenv(const_cast<char *>(displaystring.c_str())); assert(ret != -1); - string cmd = "exec "; - cmd += command; - ret = execl("/bin/sh", "/bin/sh", "-c", cmd.c_str(), NULL); + ret = execl("/bin/sh", "/bin/sh", "-c", command.c_str(), NULL); exit(ret); } #else // __EMX__ - spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", command, NULL); + spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", command.c_str(), NULL); #endif // !__EMX__ } |
