Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

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



On Tue, May 26, 2026 at 8:36 AM Mikael Magnusson <mikachu@xxxxxxxxx> 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?




Messages sorted by: Reverse Date, Date, Thread, Author