Do not permit an empty list between "while" and "do".
authormillert <millert@openbsd.org>
Mon, 5 Jul 2021 13:41:46 +0000 (13:41 +0000)
committermillert <millert@openbsd.org>
Mon, 5 Jul 2021 13:41:46 +0000 (13:41 +0000)
commit4685f2425243bee1be89977409e0daafa2db3d6d
tree1ef60e5ec8ac7fec521376e1661bf80941a28039
parent49c3446ebafdd48918f44cdf7bcc9ba2bac55e35
Do not permit an empty list between "while" and "do".
This avoids a cpu loop for "while do done" and is consistent with
the behavior of AT&T ksh and most other shells.  OK jca@ halex@
bin/ksh/syn.c