summaryrefslogtreecommitdiffstats
path: root/cmd-if-shell.c
diff options
context:
space:
mode:
authornicm <nicm>2016-04-29 17:12:12 +0000
committernicm <nicm>2016-04-29 17:12:12 +0000
commit975aa3ccd61ae5981ea1174c43603b6bdad097f1 (patch)
treeec393c07fb2cefa1b653be586d534dec27014ed9 /cmd-if-shell.c
parenteb8e76d4332e089e5cd3c5a3c9f4bf64c9474909 (diff)
Expand client formats (like run-shell), from Stephen M Coakley.
Diffstat (limited to 'cmd-if-shell.c')
-rw-r--r--cmd-if-shell.c2
1 files changed, 1 insertions, 1 deletions
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);