Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

bug




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