From 975aa3ccd61ae5981ea1174c43603b6bdad097f1 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 29 Apr 2016 17:12:12 +0000 Subject: [PATCH] Expand client formats (like run-shell), from Stephen M Coakley. --- cmd-if-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd-if-shell.c b/cmd-if-shell.c index 2f47a0d7..7d3e8e12 100644 --- a/cmd-if-shell.c +++ b/cmd-if-shell.c @@ -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);