summaryrefslogtreecommitdiffstats
path: root/job.c
diff options
context:
space:
mode:
authornicm <nicm>2022-02-01 12:05:42 +0000
committernicm <nicm>2022-02-01 12:05:42 +0000
commit7a4ba6d4a5458f4e2450024d72f0e16905dd5c64 (patch)
tree5db7aef8dcaa5cd65024b24f16d2e88d37806207 /job.c
parent770d28b8c517fd87621ea3e8d6d7bdc4f35b3a94 (diff)
Mention that if-shell and #() use /bin/sh.
Diffstat (limited to 'job.c')
-rw-r--r--job.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/job.c b/job.c
index dad211f4..fb33c0cf 100644
--- a/job.c
+++ b/job.c
@@ -89,9 +89,8 @@ job_run(const char *cmd, int argc, char **argv, struct environ *e, struct sessio
* if-shell to decide on default-terminal based on outside TERM.
*/
env = environ_for_session(s, !cfg_finished);
- if (e != NULL) {
+ if (e != NULL)
environ_copy(e, env);
- }
sigfillset(&set);
sigprocmask(SIG_BLOCK, &set, &oldset);