Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: RFC PATCH: fix lookup in $commands array when HASHLISTALL is unset
- X-seq: zsh-workers 54618
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: RFC PATCH: fix lookup in $commands array when HASHLISTALL is unset
- Date: Tue, 26 May 2026 10:23:42 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=VyH7tKaPfGdQVLCRM6hDNBdYCNeEm2jS92Vttf6pagI=; fh=5z4hNn4LCRbKTd1i4UBG0Xwg24Rjg1Dy3aTvDwPYAzg=; b=RvPukK86tACloQeW8LR02t+tUsXUfjw4rAStrFDsWMELrqAnCmFLzmONjygfRJdHD8 6fY4FHrGngUim0bPA/MWAWYtfo/spny/N9V1lY9NxLkdgbd9DZX5BkD48Qo1lNKtXSGG C6aS+/iErlyavyTyn001jIVKc0eJO+YboYA+9Zp7YV7TjAfh2zkWxwNLQF/BoYSxviW6 5r6pWeoEmY1xuNccsJocA439GWBTVGC1Sk2G2LkVio7eCHXwGL0b/qe2AnfqVxN5Y4Xr SiGRgbzaWWATPFgcUpxUHp6IWAXQR1f4J6ge1ehL/tNSBl9yh9bgBW7il+rrOihEfvdU lvkg==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1779816234; cv=none; d=google.com; s=arc-20240605; b=BXjafoOW0aookobxub6e5LVMcjyyl3bHNJqiUPtCE2Os9znUsaMmwjZWOmEAdXD28j OQmvDR0NPEjYgfrS7HDiF2TyCCNjE87XwK9I4BjB+3euP8ozYsUQ1vUUuG6M6h49UJ3K yR10msXY/o03wu/hjdpr9BAKRp/mTefy8Hw2/VbIpbQxc4czLotS5nAOhmL+zGFfLae8 cEiYPzr1U+tqPK42uDCYRrapYYsCGRHampYUwaGXEP3fpeD/KzccjcjhG/qmCLqi+IwG uN7+lo54tQI69foDW2AgGQT40gfCv2+uBSDLPI3i00GP5zzSphvlujlPQBrNZwaWGUSY 3PYQ==
- Archived-at: <https://zsh.org/workers/54618>
- In-reply-to: <20260526153604.29508-1-mikachu@gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <20260526153604.29508-1-mikachu@gmail.com>
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