mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 12:37:02 +00:00
Do not replace SHELL when using /bin/sh. From someone in GitHub issue 4528.
This commit is contained in:
3
job.c
3
job.c
@ -176,7 +176,8 @@ job_run(const char *cmd, int argc, char **argv, struct environ *e,
|
||||
closefrom(STDERR_FILENO + 1);
|
||||
|
||||
if (cmd != NULL) {
|
||||
setenv("SHELL", shell, 1);
|
||||
if (flags & JOB_DEFAULTSHELL)
|
||||
setenv("SHELL", shell, 1);
|
||||
execl(shell, argv0, "-c", cmd, (char *)NULL);
|
||||
fatal("execl failed");
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user