Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: passing arrays
- X-seq: zsh-users 5767
- From: Borzenkov Andrey <Andrey.Borzenkov@xxxxxxxxxxx>
- To: "'Le Wang'" <lewang@xxxxxxxxx>, "'Zsh users list'" <zsh-users@xxxxxxxxxx>
- Subject: RE: passing arrays
- Date: Mon, 20 Jan 2003 14:46:38 +0300
- Importance: Normal
- In-reply-to: <20030119230128.3992.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
> 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?
>
Hmm ... have you noticed that every your question needs at least one reply
that requests clarification what you really mean? No offence intended :)
Returning to your question - if
foo "$path[@]"
does what you need I do not see any reason why
foo "$bar[@]"
does not. If the question is, how to get a pair of variables like path/PATH
- it is done with typeset,
typeset -T FOO foo
creates an array foo and "colon array" FOO.
-andrey
Messages sorted by:
Reverse Date,
Date,
Thread,
Author