Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
bug
- X-seq: zsh-workers 30037
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: bug
- Date: Tue, 20 Dec 2011 18:08:58 -0800
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author