aboutsummaryrefslogtreecommitdiff
path: root/cmd-if-shell.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-09-09 16:01:09 +0100
committerThomas Adam <thomas@xteddy.org>2021-09-09 16:01:09 +0100
commit732288c489f73766af321fe500e9f933e065b2a1 (patch)
tree76696a2982d843b7060d6235eac6ba26d2e58c89 /cmd-if-shell.c
parentcf5e1bb80a0900d87c4969ca03501753da892050 (diff)
parent34312fd6ee8992ce8d13ec63b074466d5f624acc (diff)
downloadrtmux-732288c489f73766af321fe500e9f933e065b2a1.tar.gz
rtmux-732288c489f73766af321fe500e9f933e065b2a1.tar.bz2
rtmux-732288c489f73766af321fe500e9f933e065b2a1.zip
Merge branch 'obsd-master' into master
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);
}