jilles f98d5a366d sh: Detect various additional errors in the parser.
Apart from detecting breakage earlier or at all, this also fixes a segfault
in the testsuite. The "handling" of the breakage left an invalid internal
representation in some cases.

Examples:
  echo a; do echo b
  echo `) echo a`
  echo `date; do do do`

Exp-run done by:	pav (with some other sh(1) changes)
2010-10-29 21:06:57 +00:00
..
2009-12-24 18:41:14 +00:00
2009-12-24 18:41:14 +00:00
2010-03-06 16:57:53 +00:00
2009-12-24 18:41:14 +00:00
2010-06-02 19:16:58 +00:00
2009-12-24 18:41:14 +00:00
2006-04-16 11:54:01 +00:00
2010-06-02 19:16:58 +00:00