Set working directory for run-shell and if-shell.

This commit is contained in:
nicm
2015-04-24 22:19:36 +00:00
parent 5a2d0533a8
commit 583b4ab72b
6 changed files with 31 additions and 10 deletions

View File

@ -1465,7 +1465,7 @@ window_copy_copy_pipe(struct window_pane *wp, struct session *sess,
format_defaults(ft, NULL, sess, NULL, wp);
expanded = format_expand(ft, arg);
job = job_run(expanded, sess, NULL, NULL, NULL);
job = job_run(expanded, sess, -1, NULL, NULL, NULL);
bufferevent_write(job->event, buf, len);
free(expanded);