Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Terminal query responses leak into .zshrc parsing since 37acbc87?
- X-seq: zsh-workers 54355
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Mikel Ward <mikel@xxxxxxxxxxxxx>
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Terminal query responses leak into .zshrc parsing since 37acbc87?
- Date: Tue, 14 Apr 2026 01:45:19 +0200
- Archived-at: <https://zsh.org/workers/54355>
- In-reply-to: <CACVmprfWnRYmNh2NbCj0BgjAfcci1ASPeiTnS71=qtnoK_VAmg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CACVmprfv7QHHSjDEcBT3Hk7Ah4mkQVhf7a5YvL0Sq6dyuzK_Fg@mail.gmail.com> <CAH+w=7Ze6egeug3PqyYTpy=dGqPo8yqsDHfYvKsZpGZuZOQ_jg@mail.gmail.com> <CACVmprfWnRYmNh2NbCj0BgjAfcci1ASPeiTnS71=qtnoK_VAmg@mail.gmail.com>
On 2 Apr, Mikel Ward wrote:
> That's an odd error, because it seems as if the termquery probe is
> being performed by a version of zsh that doesn't understand
> namespaces.
>
> Thanks. I'll try putting a debug message at the top of my .zshrc to confirm
> which version of zsh is involved.
I suspect you don't have a clean build. Your modules perhaps being newer
than the zsh binary. Printing the version won't help to identify that.
Do a fresh checkout of the git sources and build from scratch.
> > Line 1918 that triggers it is "compctl -C -cf", but it happens even if I
> delete that line.
The significance of that line is that it is the first command you have
that forces the zle module to load. If you want to confirm that, a
bindkey added somewhere earlier will also trigger it. And are you really
using compctl? You can use it if you want but if you got that from an AI
or cargo-culted it from someone else's dot files then I recommend you
drop it and stick to compinit.
I did test both vscode and xterm.js so doubt that we have an issue with
parsing their query responses. And the part of the response you showed
is in a form that should parse correctly.
If a clean build doesn't help, there may be plugins or things in
your setup that have contrived to subvert it. Especially if any of
that entails making terminal queries. Backup your zshrc and then try
bisecting it to narrow down a minimal set of lines to reproduce the
problem.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author