Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_git:6147: math recursion limit exceeded
- X-seq: zsh-workers 31063
- From: Michal Maruska <mmaruska@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: _git:6147: math recursion limit exceeded
- Date: Mon, 25 Feb 2013 10:31:56 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=J1KZ3ZIeMjB49axRlqPQwsZxEiuwaxfSju/Y7SOGFKM=; b=LzJBucNjDmJV3NaG2lJ3oIX8fahuBj3sZZ7siZSY40D0LKUEaPWEvKH1a50yy1k/2y wgyzYft9+qQXMAv/WS6nnIJd/o8XRIApH+AGweD7WK8axQKuRi3j/NhskSFovmRSnteX vT4P/SiFk1jlRn92ZBMezmU9MxzNSgBncdD4np4xTs27M5pDb+HZf71e8RmwHY5ClYLz 3te7i34RI2FFx7filmzEBRt2eP1lf83nr0pdsTHrVo43/s/px2s2pSHuqF/pibK/Vo3z fOzBKApq65MZ99k3LYqqTxFHXzGHQjkKAFjhtTZhSPnKm5VCzQI3X6BNH+Z6RFMHu9MI OKSA==
- 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
Hello,
I have problem with completion for: git <TAB>.
I have some "third party" git commands with provided zsh completion.
They are named _git-segment _git-segment-name etc.
I see this relevant code in _git:
line 6139:
declare -gUa _git_third_party_commands
I would have expected -A associative array.
then:
local name=${${file:t}#_git-}
if (( $+_git_third_party_commands[$name] )); then
....
so my question is why -- $name being "segment-name" --,
this [$name] leads to recursion? How to avoid (& why is that needed)
xxxx-name being interpreted as arithmetic (which obviously does lead
to recursion on $name)?
Thank you
Messages sorted by:
Reverse Date,
Date,
Thread,
Author