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

Re: Idiom



On 2008-07-14 at 17:34 -0400, Jaime Vargas wrote:
> Is there a better way to setup the ${mask_octects} array?
> Without the back-ticks the expression constructs an array of one  
> element.

set -A mask_octets ${(s:.:)cidr_to_mask[22]}

See zshexpn(1), Parameter Expansion Flags.

> -- Jaime

Ah, the necromancer from the Kelley Armstrong books. :)

-Phil



Messages sorted by: Reverse Date, Date, Thread, Author