Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Can I do without "eval" here?
- X-seq: zsh-users 10017
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: zsh-users Mailinglist <zsh-users@xxxxxxxxxx>
- Subject: Re: Can I do without "eval" here?
- Date: Tue, 14 Mar 2006 10:42:49 +0100
- In-reply-to: <20060314092235.GA9475@xxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users Mailinglist <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <6F0CB04509C11D46A54232E852E390AC01004881@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20060314091619.GA5940@DervishD> <20060314092235.GA9475@xxxxxxxxxxxxxxxxxxx>
Hi Michal :)
* Michal Politowski <mpol@xxxxxxxxxxxxxxxxxxx> dixit:
> 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.
Oops, my bad O:)) At first I didn't write the solution using an
array, and afterwards I just forgot that arrays don't need manual
splitting. Thanks for pointing :)
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to... RAmen!
Messages sorted by:
Reverse Date,
Date,
Thread,
Author