jilles f8f703f788 sh: Fix crash due to uninitialized here-document.
If an ; or & token was followed by an EOF token, pending here-documents were
left uninitialized. Execution would crash, either in the main shell process
for literal here-documents or in a child process for expanded
here-documents. In the latter case the problem is hard to detect apart from
the core dumps and log messages.

Side effect: slightly different retries on inputs where EOF is not
persistent.

Note that tools/regression/bin/sh/parser/heredoc6.0 still causes a similar
crash in a child process. The text passed to eval is malformed and should be
rejected.
2010-07-25 22:25:52 +00:00
..
2009-10-15 18:17:29 +00:00
2009-06-23 23:30:56 +00:00
2010-06-02 09:34:41 +00:00
2010-01-13 17:49:35 +00:00
2009-01-30 16:23:57 +00:00
2009-06-23 23:30:56 +00:00
2006-12-18 15:45:01 +00:00
2010-03-04 16:08:01 +00:00
2007-03-04 19:52:07 +00:00
2009-06-23 23:30:56 +00:00
2006-12-27 11:28:00 +00:00
2009-09-04 21:49:37 +00:00
2010-07-12 01:58:46 +00:00
2010-02-15 14:07:40 +00:00
2006-12-27 12:14:56 +00:00
2010-05-13 16:46:23 +00:00
2009-10-15 18:17:29 +00:00