Jilles Tjoelker 4dc6bdd3e7 sh: Expand here documents in the current process.
Expand here documents at the same point other redirections are expanded but
use a non-fork subshell environment (like simple command substitutions) for
compatibility. Substitition errors result in an empty here document like
before.

As a result, a fork is avoided for short (<4K) expanded here documents.

Unexpanded here documents (with quoted end marker after <<) are not affected
by this change. They already only forked when >4K.

Side effects:
* Order of expansion is slightly different.
* Slow expansions are not executed in parallel with the redirected command.
* A non-fork subshell environment is subtly different from a forked process.
2013-02-03 15:54:57 +00:00
..
2013-01-29 20:01:47 +00:00
2011-12-11 20:53:12 +00:00
2011-05-13 16:29:57 +00:00
2012-02-22 03:36:15 +00:00
2006-12-18 15:45:01 +00:00
2009-06-23 23:30:56 +00:00
2012-05-12 02:49:40 +00:00
2012-12-28 22:06:33 +00:00
2011-02-04 16:40:50 +00:00
2012-09-27 23:31:12 +00:00
2010-02-15 14:07:40 +00:00
2006-12-27 12:14:56 +00:00
2012-07-15 21:12:22 +00:00
2012-12-27 13:21:37 +00:00
2010-09-13 01:29:51 +00:00