1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

zsh-workers/8782

This commit is contained in:
Tanaka Akira 1999-11-26 01:10:08 +00:00
parent 505c14ca05
commit 121c60b9d6

View file

@ -1119,7 +1119,9 @@ gettokstr(int c, int sub)
}
ALLOWHIST
if (c != '\'') {
lineno -= (c == '\n');
zerr("unmatched \'", NULL, 0);
lineno += (c == '\n');
peek = LEXERR;
cmdpop();
goto brk;
@ -1141,7 +1143,9 @@ gettokstr(int c, int sub)
c = dquote_parse('"', sub);
cmdpop();
if (c) {
lineno -= (c == '\n');
zerr("unmatched \"", NULL, 0);
lineno += (c == '\n');
peek = LEXERR;
goto brk;
}
@ -1178,7 +1182,9 @@ gettokstr(int c, int sub)
ALLOWHIST
cmdpop();
if (c != '`') {
lineno -= (c == '\n');
zerr("unmatched `", NULL, 0);
lineno += (c == '\n');
peek = LEXERR;
goto brk;
}