diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2001-06-21 10:09:08 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-06-21 10:09:08 +0000 |
| commit | 6c074dfaf3f6f144d64056ddfb58984817f0296a (patch) | |
| tree | 35cfd1285f2d6db136e3fb5e8eae3ef9abb4a4de | |
| parent | Fix handling of interrupt in two completion widgets. (diff) | |
| download | zsh-6c074dfaf3f6f144d64056ddfb58984817f0296a.tar zsh-6c074dfaf3f6f144d64056ddfb58984817f0296a.tar.gz zsh-6c074dfaf3f6f144d64056ddfb58984817f0296a.tar.bz2 zsh-6c074dfaf3f6f144d64056ddfb58984817f0296a.tar.lz zsh-6c074dfaf3f6f144d64056ddfb58984817f0296a.tar.xz zsh-6c074dfaf3f6f144d64056ddfb58984817f0296a.tar.zst zsh-6c074dfaf3f6f144d64056ddfb58984817f0296a.zip | |
POSIX "for" syntax.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | Src/parse.c | 2 |
2 files changed, 5 insertions, 0 deletions
@@ -1,5 +1,8 @@ 2001-06-21 Bart Schaefer <schaefer@zsh.org> + * 15023: Src/parse.c: Accept newlines before the "in" keyword in + "for" and "select", per POSIX. + * 15020: Completion/Zsh/Command/_cd, Completion/Zsh/Context/_autocd, Completion/Zsh/Type/_command_names: When AUTO_CD is set, complete directory names (including along cdpath) as well as commands when diff --git a/Src/parse.c b/Src/parse.c index dd89ab0cd..9ea691d2c 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -909,6 +909,8 @@ par_for(int *complex) ecstr(tokstr); incmdpos = 1; yylex(); + while (isnewlin && !csh) + yylex(); if (tok == STRING && !strcmp(tokstr, "in")) { int np, n; |
