From b02cd353543cb47ddaf079bd42f94696703f2667 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 4 Apr 2010 19:02:09 +0000 Subject: Run job commands explicitly in the global enviroment (which can be modified with setenv -g) rather than with the environment tmux started with. --- job.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'job.c') diff --git a/job.c b/job.c index 36ea2f4e..ddeae13f 100644 --- a/job.c +++ b/job.c @@ -150,7 +150,8 @@ job_run(struct job *job) return (-1); case 0: /* child */ server_signal_clear(); - /* XXX environ? */ + + environ_push(&global_environ); if (dup2(out[1], STDOUT_FILENO) == -1) fatal("dup2 failed"); -- cgit