fix for interactive shell parser reset issue; fix for nested array subscript quoting issue; fix for process substitutions being closed to early in for loops

This commit is contained in:
Chet Ramey
2022-10-24 10:09:52 -04:00
parent 5d423d8ab3
commit 6711d2dc77
8 changed files with 56 additions and 18 deletions
+4 -2
View File
@@ -2899,7 +2899,7 @@ yylex ()
#if defined (YYERRCODE) && !defined (YYUNDEF)
current_token = YYERRCODE;
#else
current_token = YYerror;
current_token = YYUNDEF;
#endif
return (current_token);
@@ -4156,7 +4156,9 @@ parse_comsub (qc, open, close, lenp, flags)
shell_eof_token = ps.eof_token;
expand_aliases = ps.expand_aliases;
/* yyparse() has already called yyerror() and reset_parser() */
/* yyparse() has already called yyerror() and reset_parser(), so we set
PST_NOERROR to avoid a redundant error message. */
parser_state |= PST_NOERROR;
return (&matched_pair_error);
}
else if (r != 0)