commit bash-20161118 snapshot

This commit is contained in:
Chet Ramey
2016-11-21 14:50:59 -05:00
parent 5c1f20964a
commit 31a8d95a37
14 changed files with 530 additions and 34 deletions
+2 -2
View File
@@ -2977,9 +2977,9 @@ special_case_tokens (tokstr)
the designers disagree. */
if (esacs_needed_count)
{
esacs_needed_count--;
if (STREQ (tokstr, "esac"))
if (last_read_token == IN && STREQ (tokstr, "esac"))
{
esacs_needed_count--;
parser_state &= ~PST_CASEPAT;
return (ESAC);
}