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

28332: backslash-newline with HIST_LEX_WORDS

This commit is contained in:
Peter Stephenson 2010-10-10 17:26:38 +00:00
parent d234059b1c
commit 6fea7f0d3c
2 changed files with 19 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2010-10-10 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 28332: Src/hist.c: HIST_LEX_WORDS didn't handled
backslash-newline line continuation properly. Come to think of
it, neither does the alternative.
2010-10-08 Peter Stephenson <pws@csr.com>
* Ben: 28330: Completion/X/Command/_acroread: add
@ -13722,5 +13728,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5100 $
* $Revision: 1.5101 $
*****************************************************

View file

@ -2358,8 +2358,18 @@ readhistfile(char *fn, int err, int readflags)
incnode(wordnode)) {
char *word = getdata(wordnode);
while (inblank(*pt))
pt++;
for (;;) {
/*
* Not really an oddity: "\\\n" is
* removed from input as if whitespace.
*/
if (inblank(*pt))
pt++;
else if (strpfx("\\\n", pt))
pt += 2;
else
break;
}
if (!strpfx(word, pt)) {
int bad = 0;
/*