From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3839 invoked from network); 3 Jan 1997 00:33:52 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 3 Jan 1997 00:33:52 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id TAA12786; Thu, 2 Jan 1997 19:38:44 -0500 (EST) Resent-Date: Thu, 2 Jan 1997 19:18:58 -0500 (EST) Message-Id: <199701030019.QAA07545@PEAK.ORG> Content-Type: text/plain MIME-Version: 1.0 (NeXT Mail 3.3 v118.2) X-Image-URL: http://www.nerc.com/~luomat/Timothy_J_Luoma-X-Face.tiff In-Reply-To: <199701022312.AAA00632@hzoli.ppp.cs.elte.hu> X-Nextstep-Mailer: Mail 3.3 (Enhance 2.0b5) From: Timothy J Luoma Date: Thu, 2 Jan 97 19:19:38 -0500 To: Zoltan Hidvegi Subject: Re: using the "source" command in a "for" loop cc: greg@iweb.net, zsh-users@math.gatech.edu Reply-To: luomat@peak.org References: <199701022312.AAA00632@hzoli.ppp.cs.elte.hu> Organization: Princeton Theological Seminary Resent-Message-ID: <"xeEFD3.0.113.o15po"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/581 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Responding To: Zoltan Hidvegi Original Date: Fri, 3 Jan 1997 00:12:48 +0100 (MET) Message-ID: <199701022312.AAA00632@hzoli.ppp.cs.elte.hu> > The first version does not work because zsh tries to assign the > parameter named `$i'. You have to use eval to assign the value of > $i. Although this worked without eval up to zsh-3.0.0 it was never > documented. You can use > > eval $i='"$ZDOTDIR/$i"' Is there any reason to use "eval" over "export"? Thanks TjL -- Tj Luoma (luomat@peak.org) http://www.next.peak.org/~luomat Awaiting Apple's NeXTStep