From: Vin Shelton <shelton@icd.teradyne.com>
To: Zsh users <zsh-users@sunsite.dk>
Subject: Another expansion (substitution?) question
Date: Tue, 08 Jul 2003 13:57:37 -0400 [thread overview]
Message-ID: <545d6gkyk8e.fsf@icd.teradyne.com> (raw)
Sorry for more questions, but I can't quite figure this one out.
I have a short function that lists all the matching sub-directories
under a list of directories. This single line is most of the
function:
print -l ${^$(all_dirs)}/$=~^*(N/:t) | sort -u
I thought I'd like to get rid of the 'sort -u' process, but I can't do
it all in one step. The following works:
x=( ${^$(all_dirs)}/$=~^*(N/:t) )
print -l ${(ou)x}
but when I try to remove the temporary assignment to x, here is what I
get:
print -l ${(ou)${^$(all_dirs)}/$=~^*(N/:t)}
zsh: bad pattern: emacs* o*(N
It looks to me that what is happening is that the / is being
interpreted as starting a substitution. I've tried doubling and
tripling the /, and I've tried quoting the / with a \, but nothing has
produced the desired effect.
I'm running with the latest CVS version, but I see similar problems
with 4.0.7.
Thanks for your time,
Vin
next reply other threads:[~2003-07-08 17:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-08 17:57 Vin Shelton [this message]
2003-07-09 4:42 ` Bart Schaefer
2003-07-09 4:48 ` Vin Shelton
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=545d6gkyk8e.fsf@icd.teradyne.com \
--to=shelton@icd.teradyne.com \
--cc=zsh-users@sunsite.dk \
/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).