Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Can I do without "eval" here?
- X-seq: zsh-users 10016
- From: Michal Politowski <mpol@xxxxxxxxxxxxxxxxxxx>
- To: zsh-users Mailinglist <zsh-users@xxxxxxxxxx>
- Subject: Re: Can I do without "eval" here?
- Date: Tue, 14 Mar 2006 10:22:35 +0100
- In-reply-to: <20060314091619.GA5940@DervishD>
- Mail-followup-to: zsh-users Mailinglist <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <6F0CB04509C11D46A54232E852E390AC01004881@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20060314091619.GA5940@DervishD>
On Tue, 14 Mar 2006 10:16:19 +0100, DervishD wrote:
[...]
> options=("-x")
> (($#)) && options=("-y" "$1")
> CMD $options[1] $options[2] foo
There is no need to split the array manually.
CMD $options foo
will do.
--
Michał Politowski
Talking has been known to lead to communication if practiced carelessly.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author