Re: [PATCH] compdump: improve performance
dana <[email protected]> Thu, 02 Jul 2026 00:37:17 -0500
| Newsgroups | gmane.comp.shells.zsh.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu 2 Jul 2026, at 00:12, Bart Schaefer wrote:
> I don't see from eyeballing which changes in this patch you refer to,
there are (were) a few instances like this in both functions:
> - _d_wfiles=( ${^~fpath:/.}/^([^_]*|*~|*.zwc)(N^u0u${EUID}) )
> + _d_wfiles=( ${^fpath:/.}/^([^_]*|*~|*.zwc)(N^u0u${EUID}) )
On Thu 2 Jul 2026, at 00:12, Bart Schaefer wrote:
> but typically the reason for treating array elements as glob patterns
> is to be able to apply the (N) flag and thereby remove any paths that
> don't exist. $path and $fpath may be set in shared .z* files to cover
> a number of possible locations that don't exist on every server where
> the file is used.
can you explain that further? i don't understand when/why you'd need to
treat them as glob patterns for (N) to work
dana