Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: _man - fast searching for glob patterns
- X-seq: zsh-workers 8080
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>, "ZSH workers mailing list" <zsh-workers@xxxxxxxxxxxxxx>, "Zefram" <zefram@xxxxxxxx>
- Subject: RE: _man - fast searching for glob patterns
- Date: Tue, 28 Sep 1999 12:34:52 +0400
- Importance: Normal
- In-reply-to: <990927173307.ZM17473@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
> firstmatchingpage=$allpages[(r)$our-search-pattern]
Thank you. This is a bit faster
rep[$#rep+1]=(${(M)allpages:#${~approx}$PREFIX${~star}$SUFFIX})
it gets all matching elements and assigns them to result. The speed is
acceptable (I suppose, globbing would take the same time).
BTW I wonder, if
array[$#array+1]=(...)
is much better than
array=($array ...)
??
cheers
/andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author