patch 8.0.0902: cannot specify directory or environment for a job
Problem: Cannot specify directory or environment for a job.
Solution: Add the "cwd" and "env" arguments to job options. (Yasuhiro
Matsumoto, closes #1160)
diff --git a/src/terminal.c b/src/terminal.c
index b22cc1a..c215b3f 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -2362,7 +2362,8 @@
&& get_job_options(&argvars[1], &opt,
JO_TIMEOUT_ALL + JO_STOPONEXIT
+ JO_EXIT_CB + JO_CLOSE_CALLBACK
- + JO2_TERM_NAME + JO2_TERM_FINISH) == FAIL)
+ + JO2_TERM_NAME + JO2_TERM_FINISH
+ + JO2_CWD + JO2_ENV) == FAIL)
return;
term_start(cmd, &opt);