Re: [PATCH] compdump: improve performance

Bart Schaefer <[email protected]> Thu, 2 Jul 2026 11:28:12 -0700
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <CAH+w=7ai1nK8RsTeLGLM1ctk7VLH0cGMznZJFXZbXAAXzbnM-g@mail.gmail.com>
On Wed, Jul 1, 2026 at 10:37 PM dana <[email protected]> wrote:
>
> can you explain that further? i don't understand when/why you'd need to
> treat them as glob patterns for (N) to work

IIRC (which as usual IMNRC) there was a time when merely appending
glob flags to the end of a fixed string would fail to treat them as
glob flags and instead produce an error; flags could only be appended
to something that was already glob-able.

The other possibility is that it's attempting to account for use of
nameddir/userdir tilde-shortcuts in the elements, which it probably
shouldn't.

As an aside to this, however, compdump and compaudit should account
for (lack of) BARE_GLOB_QUAL when run standalone from compinit.