From: "René Neumann" <lists@necoro.eu>
To: zsh-users@zsh.org
Subject: Re: [Review Request] Arrays and their usage
Date: Tue, 1 Jun 2021 00:05:51 +0200 [thread overview]
Message-ID: <640d7143-8e5b-92b5-8be5-1f1f8ac6a4ff@necoro.eu> (raw)
In-Reply-To: <fbbdbb3c-c82c-47af-85d6-5767ff6f0394@www.fastmail.com>
Am 31.05.21 um 23:43 schrieb Lawrence Velázquez:
> On Mon, May 31, 2021, at 4:04 PM, René Neumann wrote:
>> Fun fact: I prefer `...`, because I find it more legible, especially in
>> the x=`cmd y z` form¹.
>
> If you're doing command substitution in a context where you have
> to suppress word-splitting yourself, then you're choosing between
>
> outer_cmd foo "`inner_cmd bar`" baz
>
> and
>
> outer_cmd foo "$(inner_cmd bar)" baz
>
> Many (including me) would consider "`...`" less legible.
>
I'm with you on that. As soon as quotes (or ${}) are involved, `...` loses.
But, at least in my code, simple stuff like
local tmpdir=`mktemp -d`
is the majority of command calls, and there it helps (me) :)
- René
next prev parent reply other threads:[~2021-05-31 22:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-30 23:24 René Neumann
2021-05-31 0:28 ` Mikael Magnusson
2021-05-31 4:24 ` Bart Schaefer
2021-05-31 19:41 ` René Neumann
2021-05-31 17:36 ` Stephane Chazelas
2021-05-31 20:04 ` René Neumann
2021-05-31 21:42 ` Bart Schaefer
2021-05-31 21:43 ` Lawrence Velázquez
2021-05-31 22:05 ` René Neumann [this message]
2021-06-01 5:59 ` Stephane Chazelas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=640d7143-8e5b-92b5-8be5-1f1f8ac6a4ff@necoro.eu \
--to=lists@necoro.eu \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).