commit bash-20171027 snapshot

This commit is contained in:
Chet Ramey
2017-11-06 09:19:11 -05:00
parent f886015aac
commit ed9d6077c5
7 changed files with 39 additions and 18 deletions
+1 -1
View File
@@ -3838,7 +3838,7 @@ eof_error:
tind = lex_firstind;
while ((tflags & LEX_STRIPDOC) && ret[tind] == '\t')
tind++;
if (STREQN (ret + tind, heredelim, hdlen))
if (retind-tind == hdlen && STREQN (ret + tind, heredelim, hdlen))
{
tflags &= ~(LEX_STRIPDOC|LEX_INHEREDOC|LEX_QUOTEDDOC);
/*itrace("parse_comsub:%d: found here doc end `%s'", line_number, ret + tind);*/