From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3536 invoked from network); 2 Jan 1997 20:33:10 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 2 Jan 1997 20:33:10 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id PAA07440; Thu, 2 Jan 1997 15:33:01 -0500 (EST) Resent-Date: Thu, 2 Jan 1997 15:07:28 -0500 (EST) Message-Id: <199701022008.PAA14621@nerc.com> 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 X-Nextstep-Mailer: Mail 3.3 (Enhance 2.0b5) From: Timothy J Luoma Date: Thu, 2 Jan 97 15:08:18 -0500 To: zsh-users@math.gatech.edu Subject: using the "source" command in a "for" loop Reply-To: luomat@peak.org Organization: Princeton Theological Seminary Resent-Message-ID: <"Nu-h83.0.7g1._L1po"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/574 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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