Sujet : Re: Another 'What's the diff Q" (LDo will like this)
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.unix.shellDate : 17. Sep 2024, 23:44:07
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240917152931.879@kylheku.com>
References : 1 2 3 4 5
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2024-09-17, Kenny McCormack <
gazelle@shell.xmission.com> wrote:
Perhaps you misread my post. Perhaps you misread "superiority" as
"inferiority". I admit that the two words do look pretty similar.
Here is a superiority. Because the <<< construct uses the ordinary
expansions in a command line, it is useful in a situation in which we
have an existing command that takes some complicated expansion as an
argument, and we would like to use that as standard input. The <<<
construct lets us do that without having to convert everything in that
complicated expansion into a here document.
It's not that we can't convert that content it to a here document, but
it takes work, and could introduce a bug.
So it's just tradeoffs. Some aspect that is an advantage in one
situation is a disadvantage in another, and so it goes.
-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca