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

Re: [PATCH] compdump: improve performance



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




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