Expand client formats (like run-shell), from Stephen M Coakley.

This commit is contained in:
nicm 2016-04-29 17:12:12 +00:00
parent eb8e76d433
commit 975aa3ccd6

View File

@ -81,7 +81,7 @@ cmd_if_shell_exec(struct cmd *self, struct cmd_q *cmdq)
cwd = NULL;
ft = format_create(cmdq, 0);
format_defaults(ft, NULL, s, wl, wp);
format_defaults(ft, cmdq->state.c, s, wl, wp);
shellcmd = format_expand(ft, args->argv[0]);
format_free(ft);