From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12275 invoked by alias); 5 Sep 2011 20:42:23 -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: 29752 Received: (qmail 4322 invoked from network); 5 Sep 2011 20:42:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) 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.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <110905134218.ZM6788@torch.brasslantern.com> Date: Mon, 05 Sep 2011 13:42:18 -0700 In-reply-to: <20110905191152.GA24658@altlinux.org> Comments: In reply to "Alexey I. Froloff" "Re: PATCH (?) Re: strange completion" (Sep 5, 11:11pm) References: <4DE6ABF6.10405@sergio.spb.ru> <110601194609.ZM14369@torch.brasslantern.com> <4DE765F2.5000704@sergio.spb.ru> <110602071346.ZM15593@torch.brasslantern.com> <110603013407.ZM16592@torch.brasslantern.com> <20110905191152.GA24658@altlinux.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: PATCH (?) Re: strange completion MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Sep 5, 11:11pm, Alexey I. Froloff wrote: } } On Fri, Jun 03, 2011 at 01:34:07AM -0700, Bart Schaefer wrote: } > - if [[ "$tpre$tsuf" = */* ]]; then } > + if [[ "$tpre$tsuf" = (#b)*/(*) && -n "$fake${match[1]}" ]]; then } Don't know why, but this patch breaks completion with } list-dirs-first set to true (see _files): Try the (not yet committed) patch from zsh-users/16302 and see if that makes any difference? Tangentially related, I've noticed that list-dirs-first doesn't really do anything unless there is a group-name style in effect. That is: % autoload -Uz compinit % compinit -D % zstyle \* list-dirs-first true % ls BUILD config.modules local Test/ Completion/ config.modules.sh Makefile typescript Config/ config.status* sleep ul* config.h Doc/ Src/ config.h-xx Etc/ stamp-h config.log Functions/ stamp-h.in % zstyle \* group-name '' % ls Completion/ Doc/ Functions/ Test/ Config/ Etc/ Src/ BUILD config.modules Makefile typescript config.h config.modules.sh sleep ul* config.h-xx config.status* stamp-h config.log local stamp-h.in