preserve traps across a failed exec; small changes to how completion options interact; fix a bug with arithmetic for commands and LINENO

This commit is contained in:
Chet Ramey
2021-10-11 10:38:16 -04:00
parent f74291e6d1
commit 304b1e938c
15 changed files with 228 additions and 16 deletions
+3 -1
View File
@@ -4348,7 +4348,9 @@ parse_dparen (c)
#if defined (ARITH_FOR_COMMAND)
if (last_read_token == FOR)
{
arith_for_lineno = line_number;
if (word_top < MAX_CASE_NEST)
word_top++;
arith_for_lineno = word_lineno[word_top] = line_number;
cmdtyp = parse_arith_cmd (&wval, 0);
if (cmdtyp == 1)
{