Liste des Groupes | Revenir à cu shell |
In article <vcbb68$3dfds$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
...Note that I use both constructs, as the mood suits me, but I just got to>
thinking that maybe <<< doesn't actually add any new functionality.
It's actually a restriction since it doesn't allow (e.g.) to control
variable expansion (as is possible with escaping the tag ('EOF' in
your example, which prevents expansion, vs. unquoted/unescaped EOF ).
Well, not really. I can always do:
$ cmd << EOF
$(fortune)
EOF
$
and/or:
$ cmd <<< "
$(fortune)
"
$
Same diff, innit?
Les messages affichés proviennent d'usenet.