From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19017 invoked by alias); 10 May 2016 17:16:44 -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: 21542 Received: (qmail 8923 invoked from network); 10 May 2016 17:16: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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 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; bh=wU1SmWjbFRfsMUF8PYRjydSTUcDwGlb+cVg/0LuOTj8=; b=k/M7hkblNLn4csdcwFWH/H/e/UjIsEj3Dnl5mfgQJ5rwmMOpvgmiMsPJDIlQx/IuIq aBGG2bJOvbaAkOAFT6wd9w5hE6ud+kIrtUAmAkfjXTraescqjZ8uRPlY/P5HGSPnDaTR OqZyl9goPX9Qk2Ic8xNdI+5bwpa88W5Q/m/D1zUN6myjOXZaCN8vfGC9li6jYvcoKuTL F9b5khIAt8O3BeG4v9gK7Eocn2wAWZj/cDPFKnK4c2a8Fyy5XJxIlKp4OTwfKqY+sjhP AqeR1GLod+Kh0g1Io5Z/8LpYmQganxiZP4RMR25Z0BYNM00WioKM2+sb1E4Z+rr2sjBO 4FeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wU1SmWjbFRfsMUF8PYRjydSTUcDwGlb+cVg/0LuOTj8=; b=LRrFEKA19/d1dXV/JXN7o3u2U2NDyq3al2lco34SxgLNoZAf1pePRGZ4sFQ6hEJyGU hnm/Jol/TIHsEMF7rEgXxTHzgtNK41JiKEVHu+WbxS7Jt/dQRYOUcdgBONxYSFuAxlle 3MCivXqQEie8JkwAE+mExgtS2Y7ZiKJaGOQMz2e2tsdvxilCPtbKzQkeawGgGPHvTSQC gjXf7QiB8TBUockdHctoKfm4a4N77QhdcFs+TexLie1Js4sVyqG7do5i5OHTRDKUaxcA b7yz3Xy8H80K4J2glr3bac00I2mG2Wks/X7RKXnwd2j/OhOrNfi0zPNuY5eeN25l3uZf t20A== X-Gm-Message-State: AOPr4FUi2IZ92W794sNjdgmz2nTlu+8UEAlPXvlQNMe1kebe5jCFj6gW0TdcN6OeINxxvgYgKmtUC5JvbmZRZQ== X-Received: by 10.25.21.220 with SMTP id 89mr14716638lfv.65.1462900592032; Tue, 10 May 2016 10:16:32 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160510164028.60bfbee0@pwslap01u.europe.root.pri> References: <160509205620.ZM17429@torch.brasslantern.com> <20160510160518.2caebd70@pwslap01u.europe.root.pri> <20160510164028.60bfbee0@pwslap01u.europe.root.pri> From: Sebastian Gniazdowski Date: Tue, 10 May 2016 19:16:12 +0200 Message-ID: Subject: Re: Why approximate pattern doesn't match? To: Peter Stephenson Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 On 10 May 2016 at 17:40, Peter Stephenson wrote: > 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 ~. This works. Thanks! The point is: search history with set of keywords, requiring all of them to match. Best regards, Sebastian Gniazdowski