From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25835 invoked from network); 4 Aug 2003 15:55:54 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 4 Aug 2003 15:55:54 -0000 Received: (qmail 7821 invoked by alias); 4 Aug 2003 15:55:45 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6440 Received: (qmail 7812 invoked from network); 4 Aug 2003 15:55:45 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 4 Aug 2003 15:55:45 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [62.189.183.235] by sunsite.dk (MessageWall 1.0.8) with SMTP; 4 Aug 2003 15:55:45 -0000 Received: from EXCHANGE02.csr.com (unverified) by MAILSWEEPER01.cambridgesiliconradio.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Mon, 4 Aug 2003 16:54:37 +0100 Received: from csr.com ([192.168.144.127]) by EXCHANGE02.csr.com with Microsoft SMTPSVC(5.0.2195.5329); Mon, 4 Aug 2003 16:56:39 +0100 To: ZSH User List Subject: Re: something simple (I hope) In-reply-to: "Andy Spiegl"'s message of "Mon, 04 Aug 2003 17:38:10 +0200." <20030804153810.GA17793@spiegl.de> Date: Mon, 04 Aug 2003 16:55:19 +0100 Message-ID: <21119.1060012519@csr.com> From: Peter Stephenson X-OriginalArrivalTime: 04 Aug 2003 15:56:39.0569 (UTC) FILETIME=[FDCAA810:01C35AA0] Andy Spiegl wrote: > Actually in the meantime I found out how to do that: > files=(/var/tmp/exec.[[:digit:]]*) > > But what is still bugging me is that this also matches files like > /var/tmp/exec.01234.something > > I can't figure out how to tell zsh that there shouldn't be anything _after_ > digits. What is the zsh-equivalent of a $ in regular expressions? The answer to the question you've just asked is `(#e) with the extendedglob option set'. However, this doesn't get you very far here. The answer to the question you should have asked is one of the following: files=(/var/tmp/exec.<->) or if you're really attached to [[:digit:]]: setopt extendedglob files=(/var/tmp/exec.[[:digit:]]##) -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070 ********************************************************************** 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. **********************************************************************