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

Andy Isaacson adi at hexapodia.org
Tue Jul 21 23:00:43 UTC 2015


Package: zsh
Version: 5.0.8-3
Severity: normal

Dear Maintainer,

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]".

the substitution does get done before running the command:

t440s% echo $((5*8))
40

seems like setopt might influence this behavior:

t440s% setopt
nobeep
globdots
interactive
login
monitor
shinstdin
zle


-- Package-specific info:

Packages which provide vendor completions:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                        Version            Architecture       Description
+++-===========================-==================-==================-============================================================
ii  pulseaudio                  6.0-2              amd64              PulseAudio sound server
ii  systemd                     222-2              amd64              system and service manager
ii  udev                        222-2              amd64              /dev/ and hotplug management daemon
ii  vlc-nox                     2.2.1-2+b1         amd64              multimedia player and streamer (without X support)

dpkg-query: no path found matching pattern /usr/share/zsh/vendor-functions/


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.2 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages zsh depends on:
ii  dpkg        1.18.1
ii  libc6       2.19-19
ii  libcap2     1:2.24-9
ii  libtinfo5   5.9+20150516-2
ii  zsh-common  5.0.8-3

Versions of packages zsh recommends:
ii  libncursesw5  5.9+20150516-2
ii  libpcre3      2:8.35-7

Versions of packages zsh suggests:
ii  zsh-doc  5.0.8-3

-- no debconf information



More information about the Pkg-zsh-devel mailing list