Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Example of use of (S) flag
- X-seq: zsh-users 21103
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Example of use of (S) flag
- Date: Thu, 24 Dec 2015 08:53:12 +0100
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=d4RO6VeDqLyYzMEcjZm18BWFFqfmanPzBjH8SxAvFbc=; b=LMY9ONrcOaXhYv2WfVrq36/9dCabJxENtTaZ2BdpjtmXY4u6tFPquOkI73apjmAXuF zK77wIfE4QRiYIzKbG57W6/XAMfmkwY4U/sf2ZsQwrSm0ouflD+CpC39PNJLfMcwxWm/ PxVFjcJoo7acBl0tXYxke6+sseBPVf304l/H6xLBQdTHKVFz6aZEtBWrFp44l4+4OdS0 X3F7nfiCyeCSCLZPGzr36JI3sSJsm5ZUwxzuHeSvbX0P7u20xV24k+KcFZcTcblBD/mB 3oa/wZyYmA6+3MHhCtuimz7JAkKxiawWjBrvfIkw1Q3lFz6+wz2ZzfUjx2+O2kGos5mn Qljw==
- In-reply-to: <151223210157.ZM447@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVBLdXYQ_NNU9q=v9TcfiZjsYKfDt2h=ZBdfGCt6t81cuQ__14537.6145992943$1450895198$gmane$org@mail.gmail.com> <20151223232519.GA9602@chaz.gmail.com> <151223210157.ZM447@torch.brasslantern.com>
On 24 December 2015 at 06:01, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author