From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19287 invoked by alias); 14 Aug 2011 23:26:31 -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: 29687 Received: (qmail 23177 invoked from network); 14 Aug 2011 23:26:29 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.213.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=HagheB/fhumQKZepoAUFzpBoTjpWMWj8GpOdKbJ6Ick=; b=fpx/d6YE5RucETQWSwnSXi88PRHcLFnZf8U2N833fA3RONKmd0QAYfgLQIGL6jGGfn v3YMIiMZHTjtJqqGA0vMrTSUqiI+QE7nOKhyZxyNwaIpXA/aCeUnZhHeP1rDPHpeCizL WYNG5DClxFry1fJtC0aG63tqPuusOjZE1x7RM= MIME-Version: 1.0 In-Reply-To: <110814155647.ZM19699@torch.brasslantern.com> References: <110623211249.ZM11110@torch.brasslantern.com> <110814155647.ZM19699@torch.brasslantern.com> Date: Mon, 15 Aug 2011 01:21:17 +0200 Message-ID: Subject: Re: (#cN,M) error, %? doesn't glob From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 On 15 August 2011 00:56, Bart Schaefer wrote: > On Aug 14, 9:44am, Mikael Magnusson wrote: > } > } The flag tt(LPAR()#c)var(N)tt(,)var(M)tt(RPAR()) can be used anywhere > } that the tt(#) or tt(##) operators can be used except for in the expressions > } `tt((*/)#)' and `tt((*/)##)' while globbing, which are handled specially; > } it cannot be combined with other globbing flags and a bad pattern error > } occurs if it is misplaced. > > Make it > > except in the expressions `tt((*/)#)' and `tt((*/)##)' in filename > generation, where `tt(/)' has special meaning; > > and I'm all for it. Thanks, that sounds much better. And I feel like "filename generation" is more specific than "when globbing" too, it should be valid in y in x~y for example, but I didn't test this :). -- Mikael Magnusson