From: Ray Andrews <rayandrews@eastlink.ca>
To: Zsh Users <zsh-users@zsh.org>
Subject: can print but not assign to variable
Date: Wed, 26 Oct 2022 14:11:07 -0700 [thread overview]
Message-ID: <69b17354-ba70-5e88-2d89-1306fe4e8795@eastlink.ca> (raw)
$ print -l (#i)$W/rap
/aWorking/Zsh/Source/Wk/RAP
/aWorking/Zsh/Source/Wk/Rap
/aWorking/Zsh/Source/Wk/rap
$ var=(#i)$W/rap
zsh: bad pattern: #i
I'm not expecting trouble there. I can make the assignment using "
var=$( print ... ) ", but still it puzzles me that it's not straightforward.
next reply other threads:[~2022-10-26 21:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-26 21:11 Ray Andrews [this message]
2022-10-26 21:38 ` Roman Perepelitsa
2022-10-26 21:49 ` Ray Andrews
2022-10-26 21:57 ` Lawrence Velázquez
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=69b17354-ba70-5e88-2d89-1306fe4e8795@eastlink.ca \
--to=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).