zsh-users
 help / color / mirror / code / Atom feed
* zshexpn problem
@ 2005-02-20  4:33 Matthias Berndt
  2005-02-20  5:07 ` Matthias Berndt
  0 siblings, 1 reply; 3+ messages in thread
From: Matthias Berndt @ 2005-02-20  4:33 UTC (permalink / raw)
  To: zsh-users

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[3]}
-> 2
print ${(s/./)LVERSION[3]}
-> 6
print ${(s/./)LVERSION[3]}
-> 10

Something like ...

print ${${(s/./)LVERSION}[1]}
-> 2
print ${${(s/./)LVERSION}[1]}
-> 6
print ${${(s/./)LVERSION}[1]}
-> 10

... works 'correct', but is seems not very intelligent.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-02-21 12:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-20  4:33 zshexpn problem Matthias Berndt
2005-02-20  5:07 ` Matthias Berndt
2005-02-21 12:04   ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).