On 2015-03-19 19:06, Peng Yu wrote:
[...]
> Heredoc is good when the doc is short. But when the doc is long, it is
> better to put it in a file.
>
> Therefore, could there be a new feature in bash called, say, theredoc
> be added for this case?
This is not what bash is for. There are tools specifically designed for
this purpose, namely M4 (http://www.gnu.org/software/m4/manual/m4.html).
--
Regards,
Matthew Cengia