Another 'What's the diff Q" (LDo will like this)

Liste des GroupesRevenir à cu shell 
Sujet : Another 'What's the diff Q" (LDo will like this)
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.unix.shell
Date : 17. Sep 2024, 06:37:25
Autres entêtes
Organisation : The official candy of the new Millennium
Message-ID : <vcb4il$234i0$1@news.xmission.com>
User-Agent : trn 4.0-test77 (Sep 1, 2010)
(bash)  What is the difference between << and <<<, from a functionality
POV?  I.e., is there anything you can do with one but not the other?

I'm talking about this:

$ cmd << 'EOF'
...
...
EOF
$

vs.

$ cmd <<< '
...
...
'
$

Of course I know, as does everybody, that << is legacy and <<< is new, but
it begs the question: Why was <<< added to the language?

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.

--
Adderall, pseudoephed, teleprompter

Date Sujet#  Auteur
17 Sep 24 * Another 'What's the diff Q" (LDo will like this)15Kenny McCormack
17 Sep 24 +* Re: Another 'What's the diff Q" (LDo will like this)13Janis Papanagnou
17 Sep 24 i`* Re: Another 'What's the diff Q" (LDo will like this)12Kenny McCormack
17 Sep 24 i `* Re: Another 'What's the diff Q" (LDo will like this)11Janis Papanagnou
17 Sep 24 i  +- Re: Another 'What's the diff Q" (LDo will like this)1Kenny McCormack
17 Sep 24 i  `* Re: Another 'What's the diff Q" (LDo will like this)9Kenny McCormack
17 Sep 24 i   `* Re: Another 'What's the diff Q" (LDo will like this)8Janis Papanagnou
17 Sep 24 i    `* Re: Another 'What's the diff Q" (LDo will like this)7Kenny McCormack
17 Sep 24 i     `* Re: Another 'What's the diff Q" (LDo will like this)6Kaz Kylheku
17 Sep 24 i      `* Re: Another 'What's the diff Q" (LDo will like this)5Kenny McCormack
17 Sep 24 i       +* Re: Another 'What's the diff Q" (LDo will like this)3Kaz Kylheku
18 Sep 24 i       i`* Re: Another 'What's the diff Q" (LDo will like this)2Kenny McCormack
18 Sep 24 i       i `- Re: Another 'What's the diff Q" (LDo will like this)1Kaz Kylheku
18 Sep 24 i       `- Re: Another 'What's the diff Q" (LDo will like this)1Kaz Kylheku
17 Sep 24 `- Re: Another 'What's the diff Q" (LDo will like this)1Kaz Kylheku

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal