From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15183 invoked by alias); 1 May 2015 20:51:21 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35014 Received: (qmail 9997 invoked from network); 1 May 2015 20:51:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Originating-IP: [80.3.228.158] X-Spam: 0 X-Authority: v=2.1 cv=AoZg3YNP c=1 sm=1 tr=0 a=P+FLVI8RzFchTbbqTxIDRw==:117 a=P+FLVI8RzFchTbbqTxIDRw==:17 a=kj9zAlcOel0A:10 a=NLZqzBF-AAAA:8 a=q2GGsy2AAAAA:8 a=vE0RENmAEk4QtcA2lrkA:9 a=CjuIK1q_8ugA:10 Date: Fri, 1 May 2015 21:51:14 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Backrefs in zstyle patterns Message-ID: <20150501215114.2aaedba7@ntlworld.com> In-Reply-To: <150501084552.ZM3199@torch.brasslantern.com> References: <150501084552.ZM3199@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 1 May 2015 08:45:52 -0700 Bart Schaefer wrote: > About a year ago in users/18572, I proposed this: > > setopt extendedglob > zstyle -e '(#b)(:completion:*)' matcher-list \ > 'zstyle -a "word-$CURRENT$match" matcher-list reply' > > I'm fairly sure that worked then, but now it doesn't, as in, the pattern is > never matched, not that $match is incorrect. See what's going into pattry() in lookupstyle() and whether p->prog looks different from what you get from a conditional comparison, and whether it got compiled with extendedglob properly. pws