summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-run-shell.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-12-11 12:27:36 +0000
committernicm <nicm@openbsd.org>2015-12-11 12:27:36 +0000
commit229bdecfd990c2b9c38421eeda34fc1f20a08adc (patch)
treeafcb4b1a3e169bc16ed1c3880ee342d43994d4fe /usr.bin/tmux/cmd-run-shell.c
parentWork around Nvidia EHCI controllers bugs. (diff)
downloadwireguard-openbsd-229bdecfd990c2b9c38421eeda34fc1f20a08adc.tar.xz
wireguard-openbsd-229bdecfd990c2b9c38421eeda34fc1f20a08adc.zip
Add cmdq as an argument to format_create and add a format for the
command name (will also be used for more later).
Diffstat (limited to 'usr.bin/tmux/cmd-run-shell.c')
-rw-r--r--usr.bin/tmux/cmd-run-shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-run-shell.c b/usr.bin/tmux/cmd-run-shell.c
index 0839a7d5ba1..d73124c928d 100644
--- a/usr.bin/tmux/cmd-run-shell.c
+++ b/usr.bin/tmux/cmd-run-shell.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-run-shell.c,v 1.31 2015/12/08 08:34:18 nicm Exp $ */
+/* $OpenBSD: cmd-run-shell.c,v 1.32 2015/12/11 12:27:36 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -100,7 +100,7 @@ cmd_run_shell_exec(struct cmd *self, struct cmd_q *cmdq)
cwd = NULL;
}
- ft = format_create(0);
+ ft = format_create(cmdq, 0);
format_defaults(ft, NULL, s, wl, wp);
shellcmd = format_expand(ft, args->argv[0]);
format_free(ft);