From: Stephane Chazelas <stephane@chazelas.org>
To: Ray Andrews <rayandrews@eastlink.ca>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: syntactic trivia
Date: Sat, 2 Jan 2021 15:30:39 +0000 [thread overview]
Message-ID: <20210102153039.4k35q567uteqeh2u@chazelas.org> (raw)
In-Reply-To: <565cd2e7-c999-5735-4089-a56870713432@eastlink.ca>
2021-01-02 06:57:32 -0800, Ray Andrews:
> [ "$case" = 'insensitive' ] && dirs=( (#i)$1*(/N) ) \
> || dirs=( $1*(/N) )
>
> Since '(#i)' is a modifier of the globing would not this be more intuitive?:
>
> dirs=( $1*(/N#i) )
>
> Just to understand it, I'm wondering why case filtering would be
> syntactically different from the other filters.
[...]
(#i) can be applied to part of a pattern:
[[ $x = ((#i)insenstive)-sensitive ]]
--
Stephane
next prev parent reply other threads:[~2021-01-02 15:31 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 [this message]
2021-01-02 17:49 ` Ray Andrews
2021-01-02 18:05 ` Bart Schaefer
2021-01-02 18:23 ` Ray Andrews
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=20210102153039.4k35q567uteqeh2u@chazelas.org \
--to=stephane@chazelas.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).