#1078939 zsh: incorrect expansion with expand-or-complete and single quote

Package:
zsh
Source:
zsh
Description:
shell with lots of features
Submitter:
Vincent Lefevre
Date:
2026-01-10 11:04:36 UTC
Severity:
normal
#1078939#5
Date:
2024-08-18 02:25:28 UTC
From:
To:
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

#1078939#10
Date:
2026-01-10 10:10:41 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.