zsh-users
 help / color / mirror / code / Atom feed
* using the "source" command in a "for" loop
@ 1997-01-02 20:08 Timothy J Luoma
  0 siblings, 0 replies; 5+ messages in thread
From: Timothy J Luoma @ 1997-01-02 20:08 UTC (permalink / raw)
  To: zsh-users


I was using this with "zsh-2.6-beta13" in .zshenv

export ZDOTDIR=$homedir/Unix/zsh/source/

for i in `/bin/ls -1 $ZDOTDIR`
do
        echo -n "Sourcing $i... "

        # source the file
        source "$ZDOTDIR/$i"

        # set up variables using the filenames
        $i="$ZDOTDIR/$i"
        echo "done"
done

now with 3.0.2 I get this:

/Users/luomat/.zshenv: no such file or directory:  
aliases=/Users/luomat/Unix/zsh/source//aliases [91]

(where "aliases" is a filename)

this was a handy thing, where I could add or remove files to be  
sourced simply by putting them in or taking them out of the folder.

AND I also got a variable made at the same time, which was handy  
because then I could do "pico $aliases" rather than "pico  
$ZDOTDIR/aliases" which I always seem to fumble over.

Is there a new way to do this?  What am I doing wrong?

Thanks!

TjL

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


^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <3.0.32.19970102160304.0098b380@ns1.iweb.net>]

end of thread, other threads:[~1997-01-03  1:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-02 20:08 using the "source" command in a "for" loop Timothy J Luoma
     [not found] <3.0.32.19970102160304.0098b380@ns1.iweb.net>
1997-01-02 21:12 ` Timothy J Luoma
1997-01-02 23:12   ` Zoltan Hidvegi
1997-01-03  0:19     ` Timothy J Luoma
1997-01-03  0:51       ` Zoltan Hidvegi

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).