Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: why doesn't 'source *' work?
- X-seq: zsh-users 2290
- From: Bruce Stephens <bruce@xxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: why doesn't 'source *' work?
- Date: 11 Apr 1999 01:22:59 +0100
- In-reply-to: Timothy J Luoma's message of "Sat, 10 Apr 1999 19:49:32 -0400"
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <199904102349.TAA03697@ocalhost>
Timothy J Luoma <tjlists@xxxxxxxxxxx> writes:
> > According to the manual:
>
> > If any arguments arg are given, they become the positional
> > parameters; the old positional parameters are restored when the
> > file is done executing. The exit status is the exit status of the
> > last command executed.
> >
> > I'm guessing you missed the bit about the positional parameters.
>
> Or just don't understand what the heck that means.
If you do "source a b c d e", then the file "a" gets sourced, with the
positional parameters set: $1 gets set to "b", $2 to "c", $3 to "d"
and $4 to "e".
The same kind of behaviour that you get with shell functions and
things.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author