zsh-workers
 help / color / mirror / code / Atom feed
* Zsh 5.9 Tab Completion Bug
@ 2022-11-05  7:55 丁骆昌祺
  2022-11-06  2:57 ` Eric Cook
  0 siblings, 1 reply; 7+ messages in thread
From: 丁骆昌祺 @ 2022-11-05  7:55 UTC (permalink / raw)
  To: zsh-workers

Steps to reproduce:
Type these commands in the terminal:
```
$ touch o-st o-te
$ ls o-
```
Now hit <TAB>, the terminal becomes:
```
$ ls o-T
```
Hit <TAB> again, the terminal becomes:
```
$ ls o-te
```



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zsh 5.9 Tab Completion Bug
  2022-11-05  7:55 Zsh 5.9 Tab Completion Bug 丁骆昌祺
@ 2022-11-06  2:57 ` Eric Cook
  2022-11-06  5:20   ` Mikael Magnusson
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Cook @ 2022-11-06  2:57 UTC (permalink / raw)
  To: zsh-workers

On 11/5/22 03:55, 丁骆昌祺 wrote:
> Steps to reproduce:
> Type these commands in the terminal:
> ```
> $ touch o-st o-te
> $ ls o-
> ```
> Now hit <TAB>, the terminal becomes:
> ```
> $ ls o-T
> ```
> Hit <TAB> again, the terminal becomes:
> ```
> $ ls o-te
> ```
> 
> 
there is a few steps missing to reproduce this. At a guess most likely your matcher-list style has values that you dislike.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zsh 5.9 Tab Completion Bug
  2022-11-06  2:57 ` Eric Cook
@ 2022-11-06  5:20   ` Mikael Magnusson
  2022-11-06  6:31     ` Bart Schaefer
  0 siblings, 1 reply; 7+ messages in thread
From: Mikael Magnusson @ 2022-11-06  5:20 UTC (permalink / raw)
  To: Eric Cook; +Cc: zsh-workers

On 11/6/22, Eric Cook <llua@gmx.com> wrote:
> On 11/5/22 03:55, 丁骆昌祺 wrote:
>> Steps to reproduce:
>> Type these commands in the terminal:
>> ```
>> $ touch o-st o-te
>> $ ls o-
>> ```
>> Now hit <TAB>, the terminal becomes:
>> ```
>> $ ls o-T
>> ```
>> Hit <TAB> again, the terminal becomes:
>> ```
>> $ ls o-te
>> ```
>>
>>
> there is a few steps missing to reproduce this. At a guess most likely your
> matcher-list style has values that you dislike.

I have a vague memory that this was a bug that has been fixed a while
ago, possibly related to nocaseglob?

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zsh 5.9 Tab Completion Bug
  2022-11-06  5:20   ` Mikael Magnusson
@ 2022-11-06  6:31     ` Bart Schaefer
  2022-11-06 12:54       ` Mikael Magnusson
  2022-11-06 18:09       ` Bart Schaefer
  0 siblings, 2 replies; 7+ messages in thread
From: Bart Schaefer @ 2022-11-06  6:31 UTC (permalink / raw)
  To: Mikael Magnusson; +Cc: Eric Cook, zsh-workers

On Sat, Nov 5, 2022 at 10:22 PM Mikael Magnusson <mikachu@gmail.com> wrote:
>
> I have a vague memory that this was a bug that has been fixed a while
> ago, possibly related to nocaseglob?

If this is appearing in 5.9 as reported, then the only related change
since the release would be workers/50325 ... either way as Eric
guessed it probably has something to do with matcher-list.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zsh 5.9 Tab Completion Bug
  2022-11-06  6:31     ` Bart Schaefer
@ 2022-11-06 12:54       ` Mikael Magnusson
  2022-11-06 18:09       ` Bart Schaefer
  1 sibling, 0 replies; 7+ messages in thread
From: Mikael Magnusson @ 2022-11-06 12:54 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: Eric Cook, zsh-workers

On 11/6/22, Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Sat, Nov 5, 2022 at 10:22 PM Mikael Magnusson <mikachu@gmail.com> wrote:
>>
>> I have a vague memory that this was a bug that has been fixed a while
>> ago, possibly related to nocaseglob?
>
> If this is appearing in 5.9 as reported, then the only related change
> since the release would be workers/50325 ... either way as Eric
> guessed it probably has something to do with matcher-list.

Ah, my mistake, I scanned the message body for version info and missed
the subject line.

-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zsh 5.9 Tab Completion Bug
  2022-11-06  6:31     ` Bart Schaefer
  2022-11-06 12:54       ` Mikael Magnusson
@ 2022-11-06 18:09       ` Bart Schaefer
  2022-11-07  9:09         ` Jun T
  1 sibling, 1 reply; 7+ messages in thread
From: Bart Schaefer @ 2022-11-06 18:09 UTC (permalink / raw)
  To: Mikael Magnusson; +Cc: Eric Cook, zsh-workers

On Sat, Nov 5, 2022 at 11:31 PM Bart Schaefer <schaefer@brasslantern.com> wrote:
>
> If this is appearing in 5.9 as reported, then the only related change
> since the release would be workers/50325 ... either way as Eric
> guessed it probably has something to do with matcher-list.

50325 was about an off-by-one error in matcher-list comparisons.
Given that "s" is becoming "T", I'm betting that is in fact the
problem.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Zsh 5.9 Tab Completion Bug
  2022-11-06 18:09       ` Bart Schaefer
@ 2022-11-07  9:09         ` Jun T
  0 siblings, 0 replies; 7+ messages in thread
From: Jun T @ 2022-11-07  9:09 UTC (permalink / raw)
  To: zsh-workers


> 2022/11/07 3:09, Bart Schaefer <schaefer@brasslantern.com> wrote:
> 
> 50325 was about an off-by-one error in matcher-list comparisons.
> Given that "s" is becoming "T", I'm betting that is in fact the
> problem.

The problem exists in zsh-5.9 with
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}'

It has been fixed by 50325.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-11-07  9:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-05  7:55 Zsh 5.9 Tab Completion Bug 丁骆昌祺
2022-11-06  2:57 ` Eric Cook
2022-11-06  5:20   ` Mikael Magnusson
2022-11-06  6:31     ` Bart Schaefer
2022-11-06 12:54       ` Mikael Magnusson
2022-11-06 18:09       ` Bart Schaefer
2022-11-07  9:09         ` Jun T

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).