From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4022 invoked from network); 27 Jun 2001 03:32:17 -0000 Received: from ns2.primenet.com.au (HELO mail2.primenet.com.au) (?WVwaiOH1v6IXJ5tWIdOOuLWqEnZxa0Hn?@203.24.36.3) by ns1.primenet.com.au with SMTP; 27 Jun 2001 03:32:17 -0000 Received: (qmail 2308 invoked from network); 27 Jun 2001 03:32:06 -0000 Received: from sunsite.dk (130.225.51.30) by ns2.primenet.com.au with SMTP; 27 Jun 2001 03:32:06 -0000 Received: (qmail 23742 invoked by alias); 27 Jun 2001 03:31:09 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3959 Received: (qmail 23721 invoked from network); 27 Jun 2001 03:31:08 -0000 Date: Tue, 26 Jun 2001 23:24:58 -0400 From: =?iso-8859-1?Q?J=F6rg_Ziefle?= To: Clint Adams Cc: zsh-users@sunsite.dk Subject: Re: problem/bug: array definition from command (backticks) - solved Message-ID: <20010626233100.A3153@acmex.gatech.edu> References: <20010626220704.A25876@acmey.gatech.edu> <20010626231214.A25363@dman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0us In-Reply-To: <20010626231214.A25363@dman.com>; from clint@zsh.org on Tue, Jun 26, 2001 at 11:12:14PM -0400 X-Mutt-References: <20010626231214.A25363@dman.com> X-Mutt-Fcc: =sent On Tue, Jun 26, 2001 at 11:12:14PM -0400, Clint Adams wrote: > If you read the docs on command substitution, you'll see that > > If the substitution is not > enclosed in double quotes, the output is > broken into words using the IFS parameter. Oops, I must have overseen this. :) However, thanks to the hint with the double quotes, I could make my expression work: mailpath=("$($HOME/bin/printmailfolders-zsh.pl)") or mailpath=("`$HOME/bin/printmailfolders-zsh.pl`") does The Right Thing (TM). > I think that the following accomplishes what you want, except for checking > if the file is ASCII. > > mailpath=(${(f)"$(for i in $HOME/{Mail,savenews}/[^.]*(.rNL+0) ; print $i\?New mail in ${i:t})"}) Unfortunately, this doesn't work for me. But as the other version's up and running and more extensible (could parse every file if it's really a mailbox, for example), this isn't a problem. Thanks again for the help. Jörg