readline fix for do-lowercase-version; fix for reading here-documents from aliases

This commit is contained in:
Chet Ramey
2023-12-05 11:54:24 -05:00
parent d5ab50bc02
commit ba57a3e752
15 changed files with 171 additions and 12 deletions
+5 -1
View File
@@ -573,7 +573,11 @@ make_here_document (REDIRECT *temp, int lineno)
here_doc_first_line = 0;
line = full_line;
line_number++;
/* if read_secondary_line uses shell_getc, that handles incrementing
line_number where necessary. */
if (heredoc_string == 0)
line_number++;
/* If set -v is in effect, echo the line read. read_secondary_line/
read_a_line leaves the newline at the end, so don't print another. */