From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: _man - fast searching for glob patterns
Date: Mon, 27 Sep 1999 21:08:25 +0400 [thread overview]
Message-ID: <000101bf090a$e9069970$21c9ca95@mow.siemens.ru> (raw)
Our system (descendant of Pyramid DC/OSx) has an unusual man system. The man
directory is assumed to have mandb file with format
man_page section path_to_file ...
("normal" man pages are supported as well - with caveat, that if the system
finds mandb man page it never searches for normal one).
Well, it is trivial to look for mandb file ... unfortunately, the number of
manual pages is about 4000 - so, the simple
while read manpage dummy
if [[ $manpage == $our-search-pattern ]]
...
done < $mandb-file
needs a considerable amount of time (10-15 seconds here). Globbing is hard to
use, because path_to_file may be *anything* - so, file names are not always
valid manpage names. And directory structure under man dir may be of any depth
as well - so, recursive globbing is needed and it takes some time as well.
Any idea?
TIA
/andrej
next reply other threads:[~1999-09-27 17:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-27 17:08 Andrej Borsenkow [this message]
1999-09-27 17:17 ` Zefram
1999-09-27 17:33 ` Bart Schaefer
1999-09-28 8:34 ` Andrej Borsenkow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000101bf090a$e9069970$21c9ca95@mow.siemens.ru' \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).