From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18106 invoked by alias); 11 Nov 2014 15:44:11 -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: 33676 Received: (qmail 27936 invoked from network); 11 Nov 2014 15:44:09 -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-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=c/scmq5g c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=fakzfutViYAkHjTa6ecA:9 a=CjuIK1q_8ugA:10 a=sTbhKs8wOasA:10 a=jEt3voHVVQMA:10 From: Bart Schaefer Message-id: <141111074407.ZM30753@torch.brasslantern.com> Date: Tue, 11 Nov 2014 07:44:07 -0800 In-reply-to: <20141111125423.GA4343@chaz.gmail.com> Comments: In reply to Stephane Chazelas "(#m) and "case" alternation" (Nov 11, 12:54pm) References: <20141111125423.GA4343@chaz.gmail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Stephane Chazelas , Zsh hackers list Subject: Re: (#m) and "case" alternation MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Nov 11, 12:54pm, Stephane Chazelas wrote: } } Some unexpected behaviour: } } $ case abc in ((#m)a* | b*) echo $MATCH; esac It shouldn't be unexpected, because it's documented: m Set references to the match data for the entire string matched; this is similar to backreferencing and does not work in filename generation. THE FLAG MUST BE IN EFFECT AT THE END OF THE PATTERN, i.e. NOT LOCAL TO A GROUP. (all-caps mine).