Disable aliases inside aliases for the moment.

pull/2875/head
nicm 2021-09-10 08:52:46 +00:00
parent 768fb9080f
commit 5cdc1bdd32
1 changed files with 7 additions and 3 deletions

View File

@ -749,6 +749,8 @@ cmd_parse_expand_alias(struct cmd_parse_command *cmd,
struct cmd_parse_command *last;
char *alias, *name, *cause;
if (pi->flags & CMD_PARSE_NOALIAS)
return (0);
memset(pr, 0, sizeof *pr);
first = TAILQ_FIRST(&cmd->arguments);
@ -788,7 +790,9 @@ cmd_parse_expand_alias(struct cmd_parse_command *cmd,
}
cmd_parse_log_commands(cmds, __func__);
pi->flags |= CMD_PARSE_NOALIAS;
cmd_parse_build_commands(cmds, pi, pr);
pi->flags &= ~CMD_PARSE_NOALIAS;
return (1);
}