From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: syntactic trivia
Date: Sat, 2 Jan 2021 10:23:33 -0800 [thread overview]
Message-ID: <e1c4dc32-8d5b-8612-1627-3aa883b499e7@eastlink.ca> (raw)
In-Reply-To: <CAH+w=7Y33XGDcOsrnJNakMZvw-YeeGU5FGpA6feywC_f6p2_VA@mail.gmail.com>
On 2021-01-02 10:05 a.m., Bart Schaefer wrote:
>
> As usual, that's not quite it.
zsh is a woman. You never quite have her figured out.
> (#i) et al. are part of the pattern,
> just like * and ? and [abc] would be. Conversely, (/N) and so on
> refer to characteristics of any files (or their names) that are found
> by scanning a directory with the pattern.
>
So it's '(#i)$1*' forming a pattern and then this pattern is applied to
whatever files '(/N)' spits out? So first we'd get a list of
directories and then we'd filter it with '(#i)$1*' ? I'm not clear on
the point at which we know we are dealing with a list of files at all.
That could only be '(/N)' because otherwise '$1*' ... na ... nope ...
what does the asterisk even mean outside a globbing context? I don't
get the parsing at all.
next prev parent reply other threads:[~2021-01-02 18:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-02 14:57 Ray Andrews
2021-01-02 15:30 ` Stephane Chazelas
2021-01-02 17:49 ` Ray Andrews
2021-01-02 18:05 ` Bart Schaefer
2021-01-02 18:23 ` Ray Andrews [this message]
2021-01-02 18:32 ` Bart Schaefer
2021-01-02 15:32 ` Stephane Chazelas
2021-01-02 18:04 ` Ray Andrews
2021-01-02 19:13 ` Bart Schaefer
2021-01-02 19:40 ` Bart Schaefer
2021-01-04 5:34 ` Daniel Shahaf
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=e1c4dc32-8d5b-8612-1627-3aa883b499e7@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).