1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 22:32:12 +02:00

30433: double backslash is not line continuation.

This commit is contained in:
Bart Schaefer 2012-04-21 18:42:56 +00:00
parent 8a5928841a
commit 19fe2dcc03
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2012-04-21 Barton E. Schaefer <schaefer@zsh.org>
* 30433: Src/hist.c: double backslash is not line continuation.
2012-04-20 Mikael Magnusson <mikachu@gmail.com>
* 30412: Doc/Zsh/zle.yo: Document the set-local-history
@ -16219,5 +16223,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5635 $
* $Revision: 1.5636 $
*****************************************************

View file

@ -2225,7 +2225,8 @@ readhistline(int start, char **bufp, int *bufsiz, FILE *in)
}
else {
buf[len - 1] = '\0';
if (len > 1 && buf[len - 2] == '\\') {
if (len > 1 && buf[len - 2] == '\\' &&
(len < 3 || buf[len - 3] != '\\')) {
buf[--len - 1] = '\n';
if (!feof(in))
return readhistline(len, bufp, bufsiz, in);