[Pkg-zsh-devel] Bug#1078939: zsh: incorrect expansion with expand-or-complete and single quote

Vincent Lefevre vincent at vinc17.net
Sun Aug 18 03:25:28 BST 2024


Package: zsh
Version: 5.9-8
Severity: normal
Forwarded: https://zsh.org/workers/53040

Consider a directory with the following 3 files: a'1 a'2 ab

I get as expected:

disset% echo a\'*
a'1 a'2

But if I type [Tab] (expand-or-complete) after a\'*, I get

disset% echo a\'1 a\'2 ab

instead of

disset% echo a\'1 a\'2

Now, consider a directory with the following 2 files: a'b'1 a'b'2

I get as expected:

disset% echo a\'b\'*
a'b'1 a'b'2

But if I type [Tab] (expand-or-complete) after a\'b\'*, this is not
expanded, while I should have obtained

disset% echo a\'b\'1 a\'b\'2

-- 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  curl             8.9.1-2      amd64        command line tool for transferring data with URL syntax
ii  dpkg-dev         1.22.11      all          Debian package development tools
ii  mercurial-common 6.8-3        all          easy-to-use, scalable distributed version control system (common files)
ii  systemd          256.4-3      amd64        system and service manager
ii  udev             256.4-3      amd64        /dev/ and hotplug management daemon
ii  zathura          0.5.8-1      amd64        document viewer with a minimalistic interface

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


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.10.4-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zsh depends on:
ii  debianutils  5.20
ii  libc6        2.39-7
ii  libcap2      1:2.66-5
ii  libtinfo6    6.5-2
ii  zsh-common   5.9-8

Versions of packages zsh recommends:
ii  libgdbm6t64   1.24-2
ii  libncursesw6  6.5-2
ii  libpcre2-8-0  10.42-4+b1

Versions of packages zsh suggests:
ii  zsh-doc  5.9-8

-- no debconf information

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Pkg-zsh-devel mailing list