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

Re: Can I do without "eval" here?



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