diff options
| author | Barton E. Schaefer <schaefer@zsh.org> | 2015-05-06 07:46:15 -0700 |
|---|---|---|
| committer | Barton E. Schaefer <schaefer@zsh.org> | 2015-05-06 07:46:15 -0700 |
| commit | aa34d2f1652f31940534864c1a8ef5404c004638 (patch) | |
| tree | d5e5d7152f6518dd624b7af686f28650f880e9a8 | |
| parent | c.f. 35041: typo in zle.yo (diff) | |
| download | zsh-aa34d2f1652f31940534864c1a8ef5404c004638.tar zsh-aa34d2f1652f31940534864c1a8ef5404c004638.tar.gz zsh-aa34d2f1652f31940534864c1a8ef5404c004638.tar.bz2 zsh-aa34d2f1652f31940534864c1a8ef5404c004638.tar.lz zsh-aa34d2f1652f31940534864c1a8ef5404c004638.tar.xz zsh-aa34d2f1652f31940534864c1a8ef5404c004638.tar.zst zsh-aa34d2f1652f31940534864c1a8ef5404c004638.zip | |
35046: unwind cmdstack when erroring out of lexing a parameter expansion in braces
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | Src/lex.c | 5 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2015-05-06 Barton E. Schaefer <schaefer@zsh.org> + + * 35046: Src/lex.c: properly unwind cmdstack when erroring out of + lexing a parameter expansion in braces + 2015-05-06 Peter Stephenson <p.stephenson@samsung.com> * c.f. 35041 (Axel Beckert): Doc/Zsh/zle.yo: typo. @@ -1345,8 +1345,11 @@ gettokstr(int c, int sub) break; } brk: - if (errflag) + if (errflag) { + while(bct-- >= in_brace_param) + cmdpop(); return LEXERR; + } hungetc(c); if (unmatched) zerr("unmatched %c", unmatched); |
