Jilles Tjoelker 85307c9ed9 sh: Allow terminating a heredoc with a terminator at EOF without a newline.
This is sometimes used with eval or old-style command substitution, and most
shells other than ash derivatives allow it.

It can also be used with scripts that violate POSIX's requirement on the
application that they end in a newline (scripts must be text files except
that line length is unlimited).

Example:
v=`cat <<EOF
foo
EOF`
echo $v

This commit does not add support for the similar construct with new-style
command substitution, like
v=$(cat <<EOF
foo
EOF)
This continues to require a newline after the terminator.
2011-05-20 16:03:36 +00:00
..
2009-10-15 18:17:29 +00:00
2010-06-02 09:34:41 +00:00
2011-05-13 16:29:57 +00:00
2009-01-30 16:23:57 +00:00
2011-02-21 09:01:34 +00:00
2006-12-18 15:45:01 +00:00
2011-02-12 20:28:15 +00:00
2009-06-23 23:30:56 +00:00
2011-02-21 16:03:39 +00:00
2011-03-15 22:22:11 +00:00
2011-05-13 16:29:57 +00:00
2006-12-27 11:28:00 +00:00
2009-09-04 21:49:37 +00:00
2011-02-04 16:40:50 +00:00
2011-05-20 14:32:28 +00:00
2011-03-15 22:22:11 +00:00
2010-02-15 14:07:40 +00:00
2006-12-27 12:14:56 +00:00
2011-03-15 22:22:11 +00:00
2009-10-15 18:17:29 +00:00
2010-09-13 01:29:51 +00:00