Log command arguments.

This commit is contained in:
nicm
2018-08-02 18:35:21 +00:00
parent fb1f0fee5a
commit d6ff630498
3 changed files with 15 additions and 2 deletions

View File

@ -920,8 +920,7 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv,
log_debug("%s: shell=%s", __func__, wp->shell);
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]);
cmd_log_argv(wp->argc, wp->argv, __func__);
environ_log(env, "%s: environment ", __func__);
memset(&ws, 0, sizeof ws);