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

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


this bug report has been filed against zsh 5.0.8 in Debian:


I've skimmed over the commits and zsh-workers mails since the release
and didn't notice anything covering this issue yet.

I can also reproduce this issue with zsh 5.0.8 in Debian and can
confirm, that it didn't happen with zsh 5.0.7 in Debian.

----- Forwarded message from Andy Isaacson <adi@xxxxxxxxxxxxx> -----
Date: Tue, 21 Jul 2015 16:00:43 -0700
From: Andy Isaacson <adi@xxxxxxxxxxxxx>
Subject: [Pkg-zsh-devel] Bug#793168: zsh: expand-substitution-on-TAB broke for $(()) in 5.0.8
Reply-To: Andy Isaacson <adi@xxxxxxxxxxxxx>, 793168@xxxxxxxxxxxxxxx

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))

seems like setopt might influence this behavior:

t440s% setopt

-- Package-specific info:

Packages which provide vendor completions:

| 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
----- End forwarded message -----

		Regards, Axel
/~\  Plain Text Ribbon Campaign                   | Axel Beckert, PGP: 612616B5
\ /  Say No to HTML in E-Mail and News            | abe@xxxxxxxxxxxxxxx  (Mail)
 X   See http://arc.pasp.de/                      | abe@xxxxxxxxx (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)

Messages sorted by: Reverse Date, Date, Thread, Author