From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10434 invoked by alias); 10 May 2016 15:40:35 -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: 21539 Received: (qmail 7634 invoked from network); 10 May 2016 15:40:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-AuditID: cbfec7f4-f796c6d000001486-03-573200efaf68 Date: Tue, 10 May 2016 16:40:28 +0100 From: Peter Stephenson To: Zsh Users Subject: Re: Why approximate pattern doesn't match? Message-id: <20160510164028.60bfbee0@pwslap01u.europe.root.pri> In-reply-to: References: <160509205620.ZM17429@torch.brasslantern.com> <20160510160518.2caebd70@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrALMWRmVeSWpSXmKPExsVy+t/xK7rvGYzCDb48MrbYcXIlowOjx6qD H5gCGKO4bFJSczLLUov07RK4MnasOshcsIu54tAp0QbGe0xdjBwcEgImEmc2u3UxcgKZYhIX 7q1n62Lk4hASWMoocXPuKhYIZxqTxNljU9ghnHOMEjcuboDKnGWUmHxqHTNIP4uAqsSRu4cY QWw2AUOJqZtmg9kiAooSZ359YwKxhQWMJZ58OskGYvMK2Es8Ov8FrIZTIFji3eIHTBBDe5kl JrXsBiviF9CXuPr3ExPEgfYSM6+cYYRoFpT4MfkeC4jNLKAlsXlbEyuELS+xec1bsIOEBNQl btzdzT6BUXgWkpZZSFpmIWlZwMi8ilE0tTS5oDgpPddQrzgxt7g0L10vOT93EyMknL/sYFx8 zOoQowAHoxIP7w4uw3Ah1sSy4srcQ4wSHMxKIrxu/4FCvCmJlVWpRfnxRaU5qcWHGKU5WJTE eefueh8iJJCeWJKanZpakFoEk2Xi4JRqYKxUXNjjeV7OM/x6gepkNVUJ/5j814lCDKtPGUx8 tl3Wc/tR2cJlHkd1YpasceG+cDTbOswp69vX+Q9NNr5eKVg110yu8veB9tVHeQ/NSj7Kvo4r aXHFZh127cbG9VuSn8yW6t17SzdvieLOuKw/ZqVPD69r1bS01Ps/R2m28LMIk6ss+czss5VY ijMSDbWYi4oTAYZ622pjAgAA On Tue, 10 May 2016 17:21:33 +0200 Sebastian Gniazdowski wrote: > Can (#a1) be embedded in parameter? Because it seems to not work. I do: > > search_pattern="${search_buffer// ##/*~(#a1)^*}" I rather lost the point of all this right at the start, but the answer to the question you're asking may be that as "^" is also a negation you need to put the (#a1) after that, too, not just after the ~. pws