Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: passing arrays
- X-seq: zsh-users 5760
- From: Le Wang <lewang@xxxxxxxxx>
- To: Zsh users list <zsh-users@xxxxxxxxxx>
- Subject: Re: passing arrays
- Date: Sun, 19 Jan 2003 18:01:28 -0500 (EST)
- In-reply-to: <20030119225023.GA30393@xxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
--- Zefram <zefram@xxxxxxxx> wrote: > Le Wang wrote:
> >Is it possible to pass an array into a function and
> >have the function return an array?
>
> The arguments to a function are an array, accessible
> through the
> $1/$@/$argv parameters.
hmm. I figured as much.
Here is an extension of the problem. Say I have a
bunch of functions that operate on $PATH, how would I
generalize it so that it works with any $PATH like
variable?
--
le
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
Messages sorted by:
Reverse Date,
Date,
Thread,
Author