From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8241 invoked by alias); 24 Dec 2015 07:53:37 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21103 Received: (qmail 29150 invoked from network); 24 Dec 2015 07:53:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== X-Received: by 10.112.77.8 with SMTP id o8mr5942516lbw.53.1450943611399; Wed, 23 Dec 2015 23:53:31 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <151223210157.ZM447@torch.brasslantern.com> References: <20151223232519.GA9602@chaz.gmail.com> <151223210157.ZM447@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Thu, 24 Dec 2015 08:53:12 +0100 Message-ID: Subject: Re: Example of use of (S) flag To: Bart Schaefer Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 On 24 December 2015 at 06:01, Bart Schaefer 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