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

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



Responding To:	greg haygood <greg@xxxxxxxx>
Original Date:	Thu, 02 Jan 1997 16:03:05 -0500
Message-ID: 	<3.0.32.19970102160304.0098b380@xxxxxxxxxxxx>

> # need to export the vars, or they're lost when leaving the loop

Your fix worked.

I guess something changed because this even worked for 3.0.0.  No  
matter, as long as it works now

I changed:
	$i="$ZDOTDIR/$i"
to
	export $i="$ZDOTDIR/$i"

Thanks!

TjL

--
	Tj Luoma (luomat@xxxxxxxx)
		http://www.next.peak.org/~luomat
			Awaiting Apple's NeXTStep



Messages sorted by: Reverse Date, Date, Thread, Author