[Pkg-zsh-devel] Bug#793168: Bug#793168: zsh: expand-substitution-on-TAB broke for $(()) in 5.0.8

Axel Beckert abe at debian.org
Tue Jul 21 23:40:51 UTC 2015


Control: tag -1 + confirmed upstream

Hi Andy,

thanks for your bug report.

Andy Isaacson wrote:
> with zsh 5.0.7 and earlier versions, if I type $((5*8)) and then hit TAB,
> the expression is replaced with its evaluation ("40" in this case). The
> same feature works with many different substitutions.
> 
> as of 5.0.8 TAB-substituting does not work with $(()) anymore.
> 
> It does still work right with "${VAR}" and "$[5+8]".

This very likely is related to or caused by the changed parsing of
$((…)) in 5.0.8.

I remember that there were also $((…)) related fixes after 5.0.8, but
I need to check the details.

> seems like setopt might influence this behavior:

Likely, yes. But I can reproduce the issue here, too, with the same
configuration as on 5.0.7.

Workaround for now: Use Ctrl-X * instead of Tab. This still seems to
work.

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE



More information about the Pkg-zsh-devel mailing list