From 4e7e94b2a63cf130c48a0bb89c954c36cd5cbf1b Mon Sep 17 00:00:00 2001 From: Geir Hauge Date: Tue, 31 Jan 2017 09:08:49 +0100 Subject: [PATCH] Ignore quoted newline in quoted heredoc inside command substitution --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.y b/parse.y index f415d2ee..6b1250a3 100644 --- a/parse.y +++ b/parse.y @@ -3738,7 +3738,7 @@ parse_comsub (qc, open, close, lenp, flags) while (count) { comsub_readchar: - ch = shell_getc (qc != '\'' && (tflags & (LEX_INCOMMENT|LEX_PASSNEXT)) == 0); + ch = shell_getc (qc != '\'' && (tflags & (LEX_INCOMMENT|LEX_PASSNEXT|LEX_QUOTEDDOC)) == 0); if (ch == EOF) { -- 2.11.0