mirror of
https://github.com/zsh-users/zsh
synced 2024-09-18 15:31:23 +00:00
34788: refine errflag handling in cmd_or_math()
This commit is contained in:
parent
26cfae830c
commit
ab4065623a
|
@ -1,3 +1,7 @@
|
|||
2015-03-27 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 34788: Src/lex.c: refine errflag handling in cmd_or_math()
|
||||
|
||||
2015-03-27 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* Han Pingtian: 34785: Doc/Zsh/options.yo: fix typo in SHINSTDIN.
|
||||
|
|
|
@ -513,7 +513,7 @@ cmd_or_math(int cs_type)
|
|||
/* else unsuccessful: unget the whole thing */
|
||||
hungetc(c);
|
||||
lexstop = 0;
|
||||
while (lexbuf.len > oldlen && !errflag) {
|
||||
while (lexbuf.len > oldlen && !(errflag & ERRFLAG_ERROR)) {
|
||||
lexbuf.len--;
|
||||
hungetc(itok(*--lexbuf.ptr) ?
|
||||
ztokens[*lexbuf.ptr - Pound] : *lexbuf.ptr);
|
||||
|
|
Loading…
Reference in a new issue