From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3917 invoked from network); 14 Jan 2002 19:10:13 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Jan 2002 19:10:13 -0000 Received: (qmail 21948 invoked by alias); 14 Jan 2002 19:10:04 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16457 Received: (qmail 21919 invoked from network); 14 Jan 2002 19:10:04 -0000 To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: PATCH: updated _zstyle and cleanup of related stuff In-reply-to: ""Bart Schaefer""'s message of "Mon, 14 Jan 2002 19:03:07 GMT." <1020114190307.ZM18938@candle.brasslantern.com> Date: Mon, 14 Jan 2002 19:09:37 +0000 Message-ID: <15344.1011035377@csr.com> From: Peter Stephenson "Bart Schaefer" wrote: > Hm. Where, exactly, would it not be treated as one? You mean that, at > least for now, you won't implement my `*(#qG)/*(#q.^G)' example? Yes. That's difficult. > } i.e. gets through to the pattern code, since it means you no longer need to > } rewrite glob patterns to test against the filenames, which I consider a > } highly desirable feature. > > I'm not sure I follow that. filetest='(#b)(*).c(#q.)' files=(${~filetest}) for f in $files; do if [[ $f != ${~filetest} ]]; then print "This is what happens otherwise." fi basename=$match[1] # ... stuff ... done -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************