minor change to here-doc processing in compoind lists; change to completion to avoid quoting word expansion characters like `$'

This commit is contained in:
Chet Ramey
2022-01-04 11:05:30 -05:00
parent 1d17c604fc
commit be7fc0525e
7 changed files with 223 additions and 53 deletions
+1 -1
View File
@@ -1119,7 +1119,7 @@ pattern: WORD
compound_list: newline_list list0
{
$$ = $2;
if (need_here_doc)
if (need_here_doc && last_read_token == '\n')
gather_here_documents ();
}
| newline_list list1