Disable aliases inside aliases for the moment.

This commit is contained in:
nicm 2021-09-10 08:52:46 +00:00
parent 768fb9080f
commit 5cdc1bdd32

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);
}