alias expansion fix in case statements

This commit is contained in:
Chet Ramey
2021-03-29 10:25:18 -04:00
parent b37342db4f
commit 65822e5011
6 changed files with 46 additions and 9 deletions
+4
View File
@@ -2975,8 +2975,12 @@ alias_expand_token (tokstr)
char *expanded;
alias_t *ap;
#if 0
if (((parser_state & PST_ALEXPNEXT) || command_token_position (last_read_token)) &&
(parser_state & PST_CASEPAT) == 0)
#else
if ((parser_state & PST_ALEXPNEXT) || assignment_acceptable (last_read_token))
#endif
{
ap = find_alias (tokstr);