From: Matthias Berndt <Berndt.Matthias@gmx.de>
To: zsh-users@sunsite.dk
Subject: zshexpn problem
Date: Sun, 20 Feb 2005 05:33:35 +0100 [thread overview]
Message-ID: <20050220053335.4df75e1a@localhost> (raw)
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.
next reply other threads:[~2005-02-20 4:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-20 4:33 Matthias Berndt [this message]
2005-02-20 5:07 ` Matthias Berndt
2005-02-21 12:04 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050220053335.4df75e1a@localhost \
--to=berndt.matthias@gmx.de \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).