Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Obscure [not UTF-8] bug in parameter expansion?
- X-seq: zsh-workers 21700
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Obscure [not UTF-8] bug in parameter expansion?
- Date: Mon, 05 Sep 2005 21:42:55 +0000
- In-reply-to: <1050905192523.ZM8819@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <1050905192523.ZM8819@xxxxxxxxxxxxxxxxxxxxxxx>
On Sep 5, 7:25pm, Bart Schaefer wrote:
}
} [...]
} : zargs:233; s=20480
} : zargs:234; l=ÿ
} [...]
I've narrowed this down to a test case:
foo() { typeset -a l; echo X${${l##*}[-1]}X }
It looks like some recent change has broken negative indexing on an
empty match result (it happens with a match result on either an array
or a string, but not on a plain empty string).
This is broken in 4.2.5 and 4.2.3 as well, but not in 4.2.0. I don't
have 4.2.1, 4.2.2 or 4.2.4 handy to test against.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author