Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] compdump: improve performance
- X-seq: zsh-workers 54896
- From: dana <dana@xxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] compdump: improve performance
- Date: Thu, 02 Jul 2026 00:37:17 -0500
- Archived-at: <https://zsh.org/workers/54896>
- Feedback-id: i9be146f9:Fastmail
- In-reply-to: <CAH+w=7YHVE7-0mOr92wRquhbgHGWoNszktWeki=31SxdM0Zuyw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <43446639-fa55-417e-9124-dd51b9cf44f1@app.fastmail.com> <CAH+w=7YHVE7-0mOr92wRquhbgHGWoNszktWeki=31SxdM0Zuyw@mail.gmail.com>
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