From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7822 invoked from network); 19 Dec 2002 12:44:40 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 19 Dec 2002 12:44:40 -0000 Received: (qmail 17409 invoked by alias); 19 Dec 2002 12:44:35 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18018 Received: (qmail 17400 invoked from network); 19 Dec 2002 12:44:34 -0000 From: Borzenkov Andrey To: "'Oliver Kiddle'" , zsh-workers@sunsite.dk Subject: RE: Dynamically adding to $mailpath? Date: Thu, 19 Dec 2002 15:44:24 +0300 Message-ID: <6134254DE87BD411908B00A0C99B044F03A0B5B3@MOWD019A> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 In-Reply-To: <4575.1040299586@finches.logica.co.uk> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 > > Andrey wrote: > > > > mailpath=((${$(echo ~/mail/*.spool(N))//(#m)*/$MATCH?You have new mail > in > > ${MATCH:r:t}})) > > > > should work though. Unfortunately you still need one fork (echo) unless > I > > miss some obvious way to treat result of nested globbing as array. > > My attempt at this was along the lines of: > > mailpath=( ~/mail/*.spool(e:'REPLY=( "${REPLY}?You have new mail in > ${REPLY:t:r}")':) ) > > it doesn't need a fork but there seems to be a bug somewhere because I > get `zsh: unmatched "' errors. It's okay if I remove the :t:r modifiers > though. > And leaving just one of modifiers results in zsh: unknown file attribute. -andrey