Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: using the "source" command in a "for" loop



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