Re: RFC PATCH: fix lookup in $commands array when HASHLISTALL is unset

Bart Schaefer <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <CAH+w=7YPRhd8FWUcTkECT_2qdvbP0g7-Kk-JZ58=cF7Bvrwb6g@mail.gmail.com>
On Tue, May 26, 2026 at 8:36 AM Mikael Magnusson <[email protected]> wrote:
>
> Change getpmcommand to always do a lookup via findcmd() if it the entry
> is not found in the hash and HASHLISTALL is unset. This will indirectly
> respect HASHCMDS and add the single entry if it is set, look it up in
> the hash if it was added and then HASHCMDS was unset, etc.

This is a reasonable idea.  It'll mostly affect non-interactive use,
though?  Because doesn't loading up compsys effectively force a
hashlistall so the $commands array can be referenced in completers?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.