Liste des Groupes | Revenir à cu shell |
I just thought of something. Suppose your included text contains both>
single and double quotes. This will not be an issue with <<, but will
require extra effort (more than I care to expend!) with <<<.
That's actually the property I like with here-docs; that you can
write your template-like text inside the shell-program text as it
shall (and will) be seen at the target side, both forms of quotes
inclusive.
As might have already got obvious, though, I use the '<<<' syntax
for other purposes than for such template files; for one-liners. In
that context mixed quote forms are not typical (IME) so that this
property of '<<' is not that important for me to have in '<<<'.[*]
Les messages affichés proviennent d'usenet.