From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16777 invoked by alias); 14 Aug 2011 07:44:37 -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: 29679 Received: (qmail 18550 invoked from network); 14 Aug 2011 07:44:35 -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.212.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=r///nYyX/C36x8yyZjw0N4t5nc3rtGDhEXzHtNg9qPM=; b=glTejA+tpJoAXl3vcUpndeeOodYMJEmEiyuZGPWDIL2JwINuo/bT7EI1zEOOQ4Uees 0HVb6mzTwgK4Kkp33tZsxUXNLw6yqLxuPWIrk2sr0nWUKgIc8R4MHeLuuY9IZSmU1PW6 EysLbp6LNjjsIFTG+8L5B6BVwp/4tYHz7fJmg= MIME-Version: 1.0 In-Reply-To: <110623211249.ZM11110@torch.brasslantern.com> References: <110623211249.ZM11110@torch.brasslantern.com> Date: Sun, 14 Aug 2011 09:44:29 +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 24 June 2011 06:12, Bart Schaefer wrote: > On Jun 24, 4:00am, 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 in the expressions > } +`tt((*/)#)' and `tt((*/)##)' > > That's not quite right. [[ bar/foo == (*/)(#c1,2)foo ]] does not produce > a bad pattern error. It's only in glob context where "/" has special > significance that (*/)# is also a special case. How's this? 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. -- Mikael Magnusson