summaryrefslogtreecommitdiffstats
path: root/arguments.c
diff options
context:
space:
mode:
authornicm <nicm>2021-09-09 13:38:32 +0000
committernicm <nicm>2021-09-09 13:38:32 +0000
commit34312fd6ee8992ce8d13ec63b074466d5f624acc (patch)
tree4106c6072041d97e80893ad4afba794168fa76de /arguments.c
parent5a4b2fd68c19be99d37b2a3dc9d0bfd7959d1843 (diff)
Expand argument to run-shell again.
Diffstat (limited to 'arguments.c')
-rw-r--r--arguments.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arguments.c b/arguments.c
index 20d5e7ba..1555c2f0 100644
--- a/arguments.c
+++ b/arguments.c
@@ -651,13 +651,14 @@ args_string(struct args *args, u_int idx)
/* Make a command now. */
struct cmd_list *
-args_make_commands_now(struct cmd *self, struct cmdq_item *item, u_int idx)
+args_make_commands_now(struct cmd *self, struct cmdq_item *item, u_int idx,
+ int expand)
{
struct args_command_state *state;
char *error;
struct cmd_list *cmdlist;
- state = args_make_commands_prepare(self, item, idx, NULL, 0, 0);
+ state = args_make_commands_prepare(self, item, idx, NULL, 0, expand);
cmdlist = args_make_commands(state, 0, NULL, &error);
if (cmdlist == NULL) {
cmdq_error(item, "%s", error);