Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: using the "source" command in a "for" loop
- X-seq: zsh-users 581
- From: Timothy J Luoma <luomat@xxxxxxxx>
- To: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- Subject: Re: using the "source" command in a "for" loop
- Date: Thu, 2 Jan 97 19:19:38 -0500
- Cc: greg@xxxxxxxx, zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <199701022312.AAA00632@xxxxxxxxxxxxxxxxxxxx>
- Organization: Princeton Theological Seminary
- References: <199701022312.AAA00632@xxxxxxxxxxxxxxxxxxxx>
- Reply-to: luomat@xxxxxxxx
Responding To: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
Original Date: Fri, 3 Jan 1997 00:12:48 +0100 (MET)
Message-ID: <199701022312.AAA00632@xxxxxxxxxxxxxxxxxxxx>
> 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@xxxxxxxx)
http://www.next.peak.org/~luomat
Awaiting Apple's NeXTStep
Messages sorted by:
Reverse Date,
Date,
Thread,
Author