Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Match to the end of string when using (S) flag
On Tue, 1 Nov 2016 14:23:01 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> With the leading "*" the algorithm has to check after each character
> whether the following characters match the sub-pattern in the parens,
> so it's checking every position multiple times.
Basically, the only optimised case in the matching code within the
shell is looking for a single must-match string, which doesn't apply
here.
Unless someone chooses to dedicate their lives to this --- and it is at
least a fairly well delimited part of the code --- that'll be the way it
stays.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author