From f7519811e1bbe990ff1c3d499ffb70cfc2d034f8 Mon Sep 17 00:00:00 2001 From: Ricardo Giorni Date: Sun, 29 Apr 2018 12:05:39 -0700 Subject: 47201: fix 42355 for multiple backslashes --- Src/exec.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Src/exec.c') diff --git a/Src/exec.c b/Src/exec.c index ee55aac8c..64cf5ae46 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -4435,16 +4435,16 @@ gethere(char **strp, int typ) bptr = buf + bsiz; bsiz *= 2; } - if (lexstop) + if (lexstop || c == '\n') break; - if (c == '\n') { - if (!qt && bptr > t && *(bptr - 1) == '\\') { - /* line continuation */ + if (!qt && c == '\\') { + *bptr++ = c; + c = hgetc(); + if (c == '\n') { bptr--; c = hgetc(); continue; - } else - break; + } } *bptr++ = c; c = hgetc(); -- cgit 1.4.1