From: Jim <linux.tech.guy@gmail.com>
To: zsh <zsh-users@zsh.org>
Subject: glob inside nested parameter expansion returns glob string
Date: Thu, 21 Apr 2022 12:24:23 -0500 [thread overview]
Message-ID: <CA+rB6G+ujzDmSpyO8PE2SDTc_5jQeEPoLQbO4pqZ+0qeBg_Knw@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 362 bytes --]
Hi,
The following two statements produce the expected results:
% A=(${:-.z*(.N)})
% A=(${A:#*(comp|hist)*})
When trying to nest the two, the result is the glob statement:
A=(${${:-.z*(.N)}:#*(comp|hist)*})
Trying to understand why this is the case. Could someone explain why this
happens?
Is there a way to nest the two?
Thanks for your help,
Jim Murphy
[-- Attachment #2: Type: text/html, Size: 588 bytes --]
next reply other threads:[~2022-04-21 17:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-21 17:24 Jim [this message]
2022-04-21 18:51 ` Mikael Magnusson
2022-04-21 19:15 ` Bart Schaefer
2022-04-21 20:37 ` Jim
2022-04-21 21:00 ` Jim
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=CA+rB6G+ujzDmSpyO8PE2SDTc_5jQeEPoLQbO4pqZ+0qeBg_Knw@mail.gmail.com \
--to=linux.tech.guy@gmail.com \
--cc=linuxtechguy@gmail.com \
--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).