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

Re: passing arrays



 --- 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