diff options
author | Ricardo Giorni <ricardo@giorni.co> | 2018-04-29 12:05:39 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2018-04-29 12:05:39 -0700 |
commit | f7519811e1bbe990ff1c3d499ffb70cfc2d034f8 (patch) | |
tree | 1bd8450fa2b3abea765dcb87a87f7f5965df53a0 /Src | |
parent | 2d3b3510a80046cd4222bf9c515afc90bdf76418 (diff) | |
download | zsh-f7519811e1bbe990ff1c3d499ffb70cfc2d034f8.tar.gz zsh-f7519811e1bbe990ff1c3d499ffb70cfc2d034f8.tar.xz zsh-f7519811e1bbe990ff1c3d499ffb70cfc2d034f8.zip |
47201: fix 42355 for multiple backslashes
Diffstat (limited to 'Src')
-rw-r--r-- | Src/exec.c | 12 |
1 files changed, 6 insertions, 6 deletions
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(); |