1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-20 16:01:04 +02:00

17272: inner function definition could define nonsense

This commit is contained in:
Peter Stephenson 2002-06-02 18:02:43 +00:00
parent 7f7f6ca1ba
commit b14be97dfd
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2002-06-02 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
* ?????: Src/parse.c: `outer() { inner(); }' succeded; when outer
ran it created a bogus `inner' which crashed the shell. Make
original command issue error.
2002-05-31 Clint Adams <clint@zsh.org>
* unposted: zshconfig.ac: get rid of evil -Wno-implicit

View file

@ -1566,6 +1566,8 @@ par_simple(int *complex, int nr)
pl = ecadd(WCB_PIPE(WC_PIPE_END, 0));
par_cmd(&c);
if (!c)
YYERROR(oecused);
set_sublist_code(sl, WC_SUBLIST_END, 0, ecused - 1 - sl, c);
set_list_code(ll, (Z_SYNC | Z_END), c);