From: Stephane Chazelas <stephane@chazelas.org>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: zsh workers <zsh-workers@zsh.org>
Subject: Re: clarification on (#U) in pattern matching.
Date: Mon, 7 Feb 2022 12:24:21 +0000 [thread overview]
Message-ID: <20220207122421.zanvuvkhmqo7thls@chazelas.org> (raw)
In-Reply-To: <1692212664.579212.1644236144924@mail2.virginmedia.com>
See also:
$ a=été
$ echo ${a%(#U)?}
été
$ echo ${a%%(#U)?}
été
$ echo ${a%(#U)$'\xa9'}
été
$ echo ${a%(#U)?*}
ét
Consistent with the other behaviours but maybe even more confusing.
--
Stephane
next prev parent reply other threads:[~2022-02-07 12:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-06 8:42 Stephane Chazelas
[not found] ` <1071890479.577225.1644233454174@mail2.virginmedia.com>
2022-02-07 12:15 ` Peter Stephenson
2022-02-07 12:24 ` Stephane Chazelas [this message]
2022-02-07 12:59 ` Peter Stephenson
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=20220207122421.zanvuvkhmqo7thls@chazelas.org \
--to=stephane@chazelas.org \
--cc=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@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).