commit bash-20170929 snapshot

This commit is contained in:
Chet Ramey
2017-10-02 16:42:47 -04:00
parent 1ebae4666c
commit 45cccbbc0e
8 changed files with 36 additions and 6 deletions
+5 -1
View File
@@ -2996,7 +2996,11 @@ special_case_tokens (tokstr)
(token_before_that == FOR) &&
#endif
(tokstr[0] == 'd' && tokstr[1] == 'o' && tokstr[2] == '\0'))
return (DO);
{
if (expecting_in_token)
expecting_in_token--;
return (DO);
}
/* Ditto for ESAC in the CASE case.
Specifically, this handles "case word in esac", which is a legal