From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-users@zsh.org
Subject: Re: Example of use of (S) flag
Date: Thu, 24 Dec 2015 08:53:12 +0100 [thread overview]
Message-ID: <CAKc7PVBn1_LZC67ZTNWw67EmcwKtLATHjCSBd1z2aSgSS0x3BQ@mail.gmail.com> (raw)
In-Reply-To: <151223210157.ZM447@torch.brasslantern.com>
On 24 December 2015 at 06:01, Bart Schaefer <schaefer@brasslantern.com> wrote:
> Note also that ${(S)var:#pat} is not useful; pat must still match the
> entire value of $var (or an element of $var in the array case) for the
> element to be matched/removed.
Too bad, my original intention was to do what list=(
"${(@M)list:#(#i)*$~search_pattern*}" ) does but with (S) and compare
performance of the two. Was surprised that this list=(
"${(@SM)list:#(#i)$~search_pattern}" ) doesn't work.
Best regards,
Sebastian Gniazdowski
next prev parent reply other threads:[~2015-12-24 7:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAKc7PVBLdXYQ_NNU9q=v9TcfiZjsYKfDt2h=ZBdfGCt6t81cuQ__14537.6145992943$1450895198$gmane$org@mail.gmail.com>
2015-12-23 23:25 ` Stephane Chazelas
2015-12-24 5:01 ` Bart Schaefer
2015-12-24 7:53 ` Sebastian Gniazdowski [this message]
2015-12-28 18:23 ` Philippe Troin
2015-12-28 19:13 ` Mikael Magnusson
2015-12-23 18:25 Sebastian Gniazdowski
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=CAKc7PVBn1_LZC67ZTNWw67EmcwKtLATHjCSBd1z2aSgSS0x3BQ@mail.gmail.com \
--to=sgniazdowski@gmail.com \
--cc=schaefer@brasslantern.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).