summaryrefslogtreecommitdiffstats
path: root/cmd-if-shell.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 /cmd-if-shell.c
parent5a4b2fd68c19be99d37b2a3dc9d0bfd7959d1843 (diff)
Expand argument to run-shell again.
Diffstat (limited to 'cmd-if-shell.c')
-rw-r--r--cmd-if-shell.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-if-shell.c b/cmd-if-shell.c
index 907a96e1..9cdcfc51 100644
--- a/cmd-if-shell.c
+++ b/cmd-if-shell.c
@@ -84,9 +84,9 @@ cmd_if_shell_exec(struct cmd *self, struct cmdq_item *item)
shellcmd = format_single_from_target(item, args_string(args, 0));
if (args_has(args, 'F')) {
if (*shellcmd != '0' && *shellcmd != '\0')
- cmdlist = args_make_commands_now(self, item, 1);
+ cmdlist = args_make_commands_now(self, item, 1, 0);
else if (count == 3)
- cmdlist = args_make_commands_now(self, item, 2);
+ cmdlist = args_make_commands_now(self, item, 2, 0);
else {
free(shellcmd);
return (CMD_RETURN_NORMAL);
@@ -101,11 +101,11 @@ cmd_if_shell_exec(struct cmd *self, struct cmdq_item *item)
cdata = xcalloc(1, sizeof *cdata);
- cdata->cmd_if = args_make_commands_now(self, item, 1);
+ cdata->cmd_if = args_make_commands_now(self, item, 1, 0);
if (cdata->cmd_if == NULL)
return (CMD_RETURN_ERROR);
if (count == 3) {
- cdata->cmd_else = args_make_commands_now(self, item, 2);
+ cdata->cmd_else = args_make_commands_now(self, item, 2, 0);
if (cdata->cmd_else == NULL)
return (CMD_RETURN_ERROR);
}