mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-08-07 01:30:59 +02:00
fix for `foo () print bar' (function definitions without braces) (12125)
This commit is contained in:
parent
d01795be2a
commit
0f398e9d2f
3 changed files with 10 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
2000-06-29 Sven Wischnowsky <wischnow@zsh.org>
|
2000-06-29 Sven Wischnowsky <wischnow@zsh.org>
|
||||||
|
|
||||||
|
* 12125: Src/parse.c, Test/09funcdef.ztst: fix for `foo () print
|
||||||
|
bar' (function definitions without braces)
|
||||||
|
|
||||||
* 12122: Completion/Core/_main_complete: reverse meaning of yes=num
|
* 12122: Completion/Core/_main_complete: reverse meaning of yes=num
|
||||||
again
|
again
|
||||||
|
|
||||||
|
|
|
@ -1516,10 +1516,11 @@ par_simple(int *complex, int nr)
|
||||||
}
|
}
|
||||||
yylex();
|
yylex();
|
||||||
} else {
|
} else {
|
||||||
int ll, sl, c = 0;
|
int ll, sl, pl, c = 0;
|
||||||
|
|
||||||
ll = ecadd(0);
|
ll = ecadd(0);
|
||||||
sl = ecadd(0);
|
sl = ecadd(0);
|
||||||
|
pl = ecadd(WCB_PIPE(WC_PIPE_END, 0));
|
||||||
|
|
||||||
par_cmd(&c);
|
par_cmd(&c);
|
||||||
|
|
||||||
|
|
|
@ -6,3 +6,8 @@
|
||||||
f$$
|
f$$
|
||||||
0:Regression test: `function f$$ () { ... }'
|
0:Regression test: `function f$$ () { ... }'
|
||||||
>regress expansion of function names
|
>regress expansion of function names
|
||||||
|
|
||||||
|
function foo () print bar
|
||||||
|
foo
|
||||||
|
0:Function definition without braces
|
||||||
|
>bar
|
||||||
|
|
Loading…
Reference in a new issue