* Parser fix
@ 1996-07-29 2:15 Zoltan Hidvegi
0 siblings, 0 replies; only message in thread
From: Zoltan Hidvegi @ 1996-07-29 2:15 UTC (permalink / raw)
To: Zsh hacking and development
zsh -c 'echo foo ; & echo bar' should give parse error.
Zoltan
*** Src/parse.c 1996/07/22 18:32:51 2.23
--- Src/parse.c 1996/07/29 02:13:25
***************
*** 159,166 ****
l->type = (tok == SEPER) ? Z_SYNC :
(tok == AMPER) ? Z_ASYNC : Z_ASYNC | Z_DISOWN;
incmdpos = 1;
! while (tok == SEPER || tok == AMPER || tok == AMPERBANG)
yylex();
l->right = par_list();
} else {
l = (List) make_list();
--- 159,167 ----
l->type = (tok == SEPER) ? Z_SYNC :
(tok == AMPER) ? Z_ASYNC : Z_ASYNC | Z_DISOWN;
incmdpos = 1;
! do {
yylex();
+ } while (tok == SEPER);
l->right = par_list();
} else {
l = (List) make_list();
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-07-29 2:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-29 2:15 Parser fix Zoltan Hidvegi
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).