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

Liste des GroupesRevenir à cu shell 
Sujet : Re: 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, 15:10:27
Autres entêtes
Organisation : The official candy of the new Millennium
Message-ID : <vcbv43$23gsl$1@news.xmission.com>
References : 1 2
User-Agent : trn 4.0-test77 (Sep 1, 2010)
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?

--
They say that Trump is a stupid man's idea of a clever man, a poor man's
idea of a rich man, and a weak man's idea of a strong man.

Well, Melania is an unclassy man's idea of classy.

Date Sujet#  Auteur
17 Sep07:37 * Another 'What's the diff Q" (LDo will like this)15Kenny McCormack
17 Sep09:30 +* Re: Another 'What's the diff Q" (LDo will like this)13Janis Papanagnou
17 Sep15:10 i`* Re: Another 'What's the diff Q" (LDo will like this)12Kenny McCormack
17 Sep17:38 i `* Re: Another 'What's the diff Q" (LDo will like this)11Janis Papanagnou
17 Sep17:49 i  +- Re: Another 'What's the diff Q" (LDo will like this)1Kenny McCormack
17 Sep17:54 i  `* Re: Another 'What's the diff Q" (LDo will like this)9Kenny McCormack
17 Sep19:39 i   `* Re: Another 'What's the diff Q" (LDo will like this)8Janis Papanagnou
17 Sep20:57 i    `* Re: Another 'What's the diff Q" (LDo will like this)7Kenny McCormack
17 Sep22:34 i     `* Re: Another 'What's the diff Q" (LDo will like this)6Kaz Kylheku
17 Sep22:39 i      `* Re: Another 'What's the diff Q" (LDo will like this)5Kenny McCormack
17 Sep23:15 i       +* Re: Another 'What's the diff Q" (LDo will like this)3Kaz Kylheku
18 Sep00:55 i       i`* Re: Another 'What's the diff Q" (LDo will like this)2Kenny McCormack
18 Sep03:47 i       i `- Re: Another 'What's the diff Q" (LDo will like this)1Kaz Kylheku
18 Sep00:44 i       `- Re: Another 'What's the diff Q" (LDo will like this)1Kaz Kylheku
17 Sep19:41 `- 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