mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Expand argument to run-shell again.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user