version 1.49, 2021/09/02 07:11:03 |
version 1.50, 2021/09/09 13:38:32 |
|
|
|
|
/* Make a command now. */ |
/* Make a command now. */ |
struct cmd_list * |
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; |
struct args_command_state *state; |
char *error; |
char *error; |
struct cmd_list *cmdlist; |
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); |
cmdlist = args_make_commands(state, 0, NULL, &error); |
if (cmdlist == NULL) { |
if (cmdlist == NULL) { |
cmdq_error(item, "%s", error); |
cmdq_error(item, "%s", error); |