Deutsch   English   Français   Italiano  
<20240917152931.879@kylheku.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Kaz Kylheku <643-408-1753@kylheku.com>
Newsgroups: comp.unix.shell
Subject: Re: Another 'What's the diff Q" (LDo will like this)
Date: Tue, 17 Sep 2024 22:44:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <20240917152931.879@kylheku.com>
References: <vcb4il$234i0$1@news.xmission.com>
 <vccesq$3kjv7$1@dont-email.me> <vccjf5$23rk4$1@news.xmission.com>
 <20240917132221.49@kylheku.com> <vccpd9$23si3$1@news.xmission.com>
Injection-Date: Wed, 18 Sep 2024 00:44:08 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6e7348e4bd804227446ed48a52cff9c3";
	logging-data="3918908"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/mfXaJdagaHBfwxiI11+Qq7pQcxa9tjfU="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:PM2BH8+hCA38ZXMxc4CWeycpc9A=
Bytes: 2002

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/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca