From: "Lawrence Velázquez" <larryv@zsh.org>
To: "Ray Andrews" <rayandrews@eastlink.ca>
Cc: zsh-users@zsh.org
Subject: Re: can print but not assign to variable
Date: Wed, 26 Oct 2022 17:57:13 -0400 [thread overview]
Message-ID: <9ff6d6a4-338c-4797-887f-c557eccfb020@app.fastmail.com> (raw)
In-Reply-To: <dba1c353-c54a-0b27-b863-c091f916d637@eastlink.ca>
On Wed, Oct 26, 2022, at 5:49 PM, Ray Andrews wrote:
> On 2022-10-26 14:38, Roman Perepelitsa wrote:
>> $ var=( (#i)$W/rap )
>
> :-)
>
> What do you call that construction? I know "(( ))" and "$(( ))" and
> "$()" but I don't really know that one tho I've used it a few times on
> faith. As usual, if I knew what it was called I'd read up on it.
It's just an array assignment. See zshparam(1).
You originally attempted to do a simple scalar assignment, for which
globbing is not performed on the right-hand side.
--
vq
next prev parent reply other threads:[~2022-10-26 21:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-26 21:11 Ray Andrews
2022-10-26 21:38 ` Roman Perepelitsa
2022-10-26 21:49 ` Ray Andrews
2022-10-26 21:57 ` Lawrence Velázquez [this message]
2022-10-26 22:07 ` Ray Andrews
2022-10-26 22:19 ` Lawrence Velázquez
2022-10-27 0:00 ` Ray Andrews
2022-10-27 0:36 ` Lawrence Velázquez
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=9ff6d6a4-338c-4797-887f-c557eccfb020@app.fastmail.com \
--to=larryv@zsh.org \
--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).