This bug was fixed in the package man-db - 2.6.2-1
---
man-db (2.6.2-1) unstable; urgency=low
* New upstream release:
- Optimise apropos when given many arguments (LP: #927028).
- apropos prints an error message and returns non-zero when it finds no
matches (closes: #
And here's the other part:
Mon Feb 27 13:26:47 GMT 2012 Colin Watson
* src/whatis.c (main): Move locale manpath expansion to ...
(locale_manpath): ... here (new function).
(suitable_manpath): New function.
(do_whatis): If a page contains a slash and is a p
If "nc.openbsd" only appears in the description rather than in the page
name, then apropos will show it but whatis won't; that's the essence of
the distinction between those two programs. It rather depends what you
want, but mostly, apropos is more useful for queries where you can
remember a keywo
> Something like 'apropos /bin/bash' doesn't do anything useful anyway.
Right, but 'cd /bin; apropos *' does - and still has exactly the same
problem as I originally reported. As to 'whatis', I had tested it before
writing up this bug; it produces a totally different set of results,
including thro
Incidentally you'll find that, besides giving what I think is probably
more like the right answer, 'whatis ' is much quicker. It
still has a similar inefficiency where it reopens the database every
time, but whatis has a much quicker per-item search than apropos does
(it only has to look up a sing
Something like 'apropos /bin/bash' doesn't do anything useful anyway.
The 'whatis' program sounds closer to what you want, but needs to be
invoked as 'whatis bash' rather than 'whatis /bin/bash'.
So, it sounds like I have two bugs here:
1) apropos reopens and rescans the database for every comma
Yep, what I sent was a demo of the problem. As to why you'd do this...
um, newbie Linux users wanting to see what all the standard utlities do,
for example? That makes for a rather useful functional reference. Given
that part of what I do is teach such newbies, I personally would find it
nice to be
I'm not quite sure why you'd do this, but I assume this is a reduced
test case based on something else. :-) I agree that it's a bug, thanks;
I'll have a look at it as upstream.
** Changed in: man-db (Ubuntu)
Importance: Undecided => Medium
** Changed in: man-db (Ubuntu)
Status: New =>
** Package changed: ubuntu => man-db (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/927028
Title:
'apropos' maxes out CPU when run with '/bin/*' as argument
To manage notifications about th