mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-05 11:01:13 +02:00
condition parsing with (z) flag
This commit is contained in:
parent
fa699be45d
commit
0982f4ee64
2 changed files with 7 additions and 0 deletions
|
@ -5,6 +5,9 @@
|
||||||
escapes count from the other end of the appropriate string.
|
escapes count from the other end of the appropriate string.
|
||||||
|
|
||||||
2000-07-13 Sven Wischnowsky <wischnow@zsh.org>
|
2000-07-13 Sven Wischnowsky <wischnow@zsh.org>
|
||||||
|
|
||||||
|
* 12243: Src/hist.c: try to get (z) parameter flag parsing for
|
||||||
|
conditions right
|
||||||
|
|
||||||
* 12241: Completion/Core/_main_complete, Src/Zle/computil.c: fix
|
* 12241: Completion/Core/_main_complete, Src/Zle/computil.c: fix
|
||||||
for _arguments with single-letter options: recognize
|
for _arguments with single-letter options: recognize
|
||||||
|
|
|
@ -2099,6 +2099,10 @@ bufferwords(LinkList list, char *buf, int *index)
|
||||||
strinbeg(0);
|
strinbeg(0);
|
||||||
noaliases = 1;
|
noaliases = 1;
|
||||||
do {
|
do {
|
||||||
|
if (incond)
|
||||||
|
incond = 1 + (tok != DINBRACK && tok != INPAR &&
|
||||||
|
tok != DBAR && tok != DAMPER &&
|
||||||
|
tok != BANG);
|
||||||
ctxtlex();
|
ctxtlex();
|
||||||
if (tok == ENDINPUT || tok == LEXERR)
|
if (tok == ENDINPUT || tok == LEXERR)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue