Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zshexpn problem
On Sun, 20 Feb 2005 05:33:35 +0100
Matthias Berndt <Berndt.Matthias@xxxxxx> wrote:
> Hi,
>
> When LVERSION=2.6.10 ... why:
>
> print ${(s/./)LVERSION[1]}
> -> 2
> print ${(s/./)LVERSION[2]}
> ->
> print ${(s/./)LVERSION[3]}
> -> 6
> print ${(s/./)LVERSION[4]}
> ->
> print ${(s/./)LVERSION[5]}
> -> 1
> print ${(s/./)LVERSION[6]}
> -> 0
>
> ... and not ...
>
> print ${(s/./)LVERSION[1]}
> -> 2
> print ${(s/./)LVERSION[2]}
> -> 6
> print ${(s/./)LVERSION[3]}
> -> 10
>
> Something like ...
>
> print ${${(s/./)LVERSION}[1]}
> -> 2
> print ${${(s/./)LVERSION}[2]}
> -> 6
> print ${${(s/./)LVERSION}[3]}
> -> 10
>
> ... works 'correct', but is seems not very intelligent.
>
Sorry, shit happens' when copy 'n paste. Now the values are correct.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author