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

Liste des Groupes 
Sujet : Re: Another 'What's the diff Q" (LDo will like this)
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shell
Date : 17. Sep 2024, 19:39:38
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vccesq$3kjv7$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 17.09.2024 17:54, Kenny McCormack wrote:
In article <vcc7qk$3j1r6$1@dont-email.me>,
Janis Papanagnou  <janis_papanagnou+ng@hotmail.com> wrote:
...
So what remains then is only '<<<' being a one-liner shortcut and
the '<<-' (plus the '<<#' in ksh) features to control indentation,
I suppose.
 
I just thought of something.  Suppose your included text contains both
single and double quotes.  This will not be an issue with <<, but will
require extra effort (more than I care to expend!) with <<<.

That's actually the property I like with here-docs; that you can
write your template-like text inside the shell-program text as it
shall (and will) be seen at the target side, both forms of quotes
inclusive.

As might have already got obvious, though, I use the '<<<' syntax
for other purposes than for such template files; for one-liners. In
that context mixed quote forms are not typical (IME) so that this
property of '<<' is not that important for me to have in '<<<'.[*]

Janis

[*] Such a quote-mixture seems to appear mostly in longer text that
I anyway generally implement with '<<' (if only for its additional
feature to control indentation and thereby make the whole text more
legible).


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