From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7393 invoked from network); 19 Dec 2002 12:04:57 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 19 Dec 2002 12:04:57 -0000 Received: (qmail 22885 invoked by alias); 19 Dec 2002 12:04:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 18017 Received: (qmail 22875 invoked from network); 19 Dec 2002 12:04:52 -0000 X-VirusChecked: Checked X-Env-Sender: kiddleo@logica.com X-Msg-Ref: server-5.tower-4.messagelabs.com!1040299461!23315 X-Authentication-Warning: iris.logica.co.uk: Host [158.234.142.11] claimed to be finches.logica.co.uk In-reply-to: <6134254DE87BD411908B00A0C99B044F03A0B5AC@MOWD019A> From: Oliver Kiddle References: <6134254DE87BD411908B00A0C99B044F03A0B5AC@MOWD019A> To: zsh-workers@sunsite.dk Subject: Re: Dynamically adding to $mailpath? Date: Thu, 19 Dec 2002 13:06:26 +0100 Message-ID: <4575.1040299586@finches.logica.co.uk> Sender: kiddleo@logica.com 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 running this twice in 4.1.0-dev-6 (but not in 4.0.2) causes a seg fault: echo *(e:'REPLY=( ${REPLY}?${REPLY} )':) (I forgot to quote the ? when trying that) Oliver This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.