From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-workers@zsh.org
Subject: bug
Date: Tue, 20 Dec 2011 18:08:58 -0800 [thread overview]
Message-ID: <4EF13FBA.8080803@eastlink.ca> (raw)
function z
{
var=$1
echo "var:/${1:0:1}/${1:1:1}/${1:2:1}/"
echo "var:/${var:0:1}/${var:1:1}/${var:2:1}/"
}
$ z abcde
var: /a/a/b/
var: /a/b/c/
How can that be correct?
next reply other threads:[~2011-12-21 2:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-21 2:08 Ray Andrews [this message]
2011-12-21 3:05 ` bug Bart Schaefer
2011-12-21 22:32 ` bug Peter Stephenson
-- strict thread matches above, loose matches on Subject: below --
1999-08-20 8:17 BUG Sven Wischnowsky
1999-08-19 7:16 BUG Sven Wischnowsky
1999-08-19 15:32 ` BUG Brian Harvell
1999-08-19 2:51 BUG Brian Harvell
1996-06-20 15:26 Bug Ray Van_Tassle
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=4EF13FBA.8080803@eastlink.ca \
--to=rayandrews@eastlink.ca \
--cc=zsh-workers@zsh.org \
/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).