diff options
| author | 2018-05-24 09:42:49 +0000 | |
|---|---|---|
| committer | 2018-05-24 09:42:49 +0000 | |
| commit | 8a00c84cfc00a28fa8b08e6f9e7c012de7ccc786 (patch) | |
| tree | 12e36be4a7f7bf31f3e2d3675296183cf5d7e3c9 /usr.bin/tmux/window.c | |
| parent | Improve logging of the environment etc for new panes. (diff) | |
| download | wireguard-openbsd-8a00c84cfc00a28fa8b08e6f9e7c012de7ccc786.tar.xz wireguard-openbsd-8a00c84cfc00a28fa8b08e6f9e7c012de7ccc786.zip | |
Make server_client_get_cwd used (almost) everywhere we need to work out
the cwd, and do not fall back to "." as it is pretty useless. GitHub
issue 1331.
Diffstat (limited to 'usr.bin/tmux/window.c')
| -rw-r--r-- | usr.bin/tmux/window.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/window.c b/usr.bin/tmux/window.c index 4f4e485d7a8..4df0bddd172 100644 --- a/usr.bin/tmux/window.c +++ b/usr.bin/tmux/window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window.c,v 1.209 2018/05/24 09:34:54 nicm Exp $ */ +/* $OpenBSD: window.c,v 1.210 2018/05/24 09:42:49 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -918,7 +918,8 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv, cmd = cmd_stringify_argv(wp->argc, wp->argv); log_debug("%s: shell=%s", __func__, wp->shell); - log_debug("%s: command=%s", __func__, cmd); + log_debug("%s: cmd=%s", __func__, cmd); + log_debug("%s: cwd=%s", __func__, cwd); for (i = 0; i < wp->argc; i++) log_debug("%s: argv[%d]=%s", __func__, i, wp->argv[i]); environ_log(env, "%s: environment ", __func__); |
