Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1013434: zsh: case-insensitive completion bug (5.9 regression)

48 views
Skip to first unread message

Vincent Lefevre

unread,
Jun 23, 2022, 11:40:04 AM6/23/22
to
Package: zsh
Version: 5.9-1
Severity: normal
Tags: upstream fixed-upstream
Forwarded: https://www.zsh.org/mla/workers/2022/msg00652.html

Case-insensitive completion is buggy.

A first report: https://www.zsh.org/mla/workers/2022/msg00652.html

I've found the same bug (different testcase):

mkdir test-directory
cd test-directory
touch mpfr-impl.h mpfr-intmax.h
autoload -U compinit
compinit
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*'

Then type

: m-i

and [Tab] to complete on "m-i". I get:

: mpfr-iN.h

with the cursor over the period. The character "N" is incorrect.

I've attached Bart Schaefer's patch from

https://www.zsh.org/mla/workers/2022/msg00652.html

(a.k.a. <https://zsh.org/workers/50325>).

-- 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 bubblewrap 0.6.2-1 amd64 utility for unprivileged chroot and namespace manipulation
ii curl 7.83.1-2 amd64 command line tool for transferring data with URL syntax
ii dpkg-dev 1.21.8 all Debian package development tools
ii git-extras 6.1.0-1 all Extra commands for git
ii mercurial-common 6.1.3-1 all easy-to-use, scalable distributed version control system (common files)
ii meson 0.62.2-1 all high-productivity build system
ii ninja-build 1.11.0-1 amd64 small build system closest in spirit to Make
ii pass 1.7.4-5 all lightweight directory-based password manager
ii pulseaudio-utils 15.0+dfsg1-4+b1 amd64 Command line tools for the PulseAudio sound server
ii qpdf 10.6.3-1 amd64 tools for transforming and inspecting PDF files
ii systemd 251.2-5 amd64 system and service manager
ii udev 251.2-5 amd64 /dev/ and hotplug management daemon
ii vlc-bin 3.0.17.4-3 amd64 binaries from VLC
ii youtube-dl 2021.12.17-1 all downloader of videos from YouTube and other sites

The following files were modified:

/etc/systemd/journald.conf
/etc/systemd/logind.conf
/etc/systemd/system.conf

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


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

Kernel: Linux 5.18.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages zsh depends on:
ii libc6 2.33-7
ii libcap2 1:2.44-1
ii libtinfo6 6.3+20220423-2
ii zsh-common 5.9-1

Versions of packages zsh recommends:
ii libncursesw6 6.3+20220423-2
ii libpcre3 2:8.39-14

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

-- no debconf information

--
Vincent Lefèvre <vin...@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)
cfp_matcher_range.patch

Vincent Lefevre

unread,
Jan 18, 2023, 6:30:04 AM1/18/23
to
Control: found -1 5.9-2

On 2022-06-23 17:33:33 +0200, Vincent Lefevre wrote:
> Case-insensitive completion is buggy.
>
> A first report: https://www.zsh.org/mla/workers/2022/msg00652.html
>
> I've found the same bug (different testcase):
[...]
> I've attached Bart Schaefer's patch from
>
> https://www.zsh.org/mla/workers/2022/msg00652.html
>
> (a.k.a. <https://zsh.org/workers/50325>).

and the upstream commit is

commit 3e3cfabcc74dc79d4d8717c4e5859d8d01be6c54
Author: Bart Schaefer <scha...@zsh.org>
Date: 2022-06-04 05:08:15 +0200

50325: revert 38150 and fix in calling function cfp_matcher_range() instead

--------

Note that this bug is a regression in zsh 5.9. It would be nice to
have the fix in bookworm.

Axel Beckert

unread,
Jan 18, 2023, 10:40:03 AM1/18/23
to
Hi Vincent,

Vincent Lefevre wrote:
> Note that this bug is a regression in zsh 5.9. It would be nice to
> have the fix in bookworm.

Thanks for the reminder. I've put it on my pre-freeze TODO-list.

Regards, Axel
--
,''`. | Axel Beckert <a...@debian.org>, https://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
0 new messages