From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: preserving single quotes
Date: Wed, 28 Sep 2022 11:10:53 +0200 [thread overview]
Message-ID: <CAN=4vMq9yrw0ixU3x24Ze11xMJYWcu0+cFVhr3a63soaceH_7Q@mail.gmail.com> (raw)
In-Reply-To: <b1f88f62-0dba-92df-d09d-9025c6846551@eastlink.ca>
On Wed, Sep 28, 2022 at 5:13 AM Ray Andrews <rayandrews@eastlink.ca> wrote:
>
> I've done this before but I can't remember the invocation.
>
> $ dd="echo howdy"
>
> $ ee=$($=dd); echo $ee
> howdy
>
> $ dd="aptitude search '?name(libreoffice-java-common)'"
>
> $ ee=$($=dd); echo $ee
Use ${(Q)${(z)dd}} instead of $=dd. See `man zshexpn` for the meaning
of (z) and (Q).
Roman.
next prev parent reply other threads:[~2022-09-28 9:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-28 3:12 Ray Andrews
2022-09-28 9:10 ` Roman Perepelitsa [this message]
2022-09-28 10:00 ` Stephane Chazelas
2022-09-28 14:32 ` Ray Andrews
2022-09-28 18:49 ` Stephane Chazelas
2022-09-28 19:29 ` Ray Andrews
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='CAN=4vMq9yrw0ixU3x24Ze11xMJYWcu0+cFVhr3a63soaceH_7Q@mail.gmail.com' \
--to=roman.perepelitsa@gmail.com \
--cc=rayandrews@eastlink.ca \
--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).