[Bug 927028] Re: 'apropos' maxes out CPU when run with '/bin/*' as argument

2012-06-19 Thread Launchpad Bug Tracker
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:

[Bug 927028] Re: 'apropos' maxes out CPU when run with '/bin/*' as argument

2012-02-27 Thread Colin Watson
And here's the other part: Mon Feb 27 13:26:47 GMT 2012 Colin Watson cjwat...@debian.org * src/whatis.c (main): Move locale manpath expansion to ... (locale_manpath): ... here (new function). (suitable_manpath): New function. (do_whatis): If a page

[Bug 927028] Re: 'apropos' maxes out CPU when run with '/bin/*' as argument

2012-02-21 Thread Colin Watson
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

[Bug 927028] Re: 'apropos' maxes out CPU when run with '/bin/*' as argument

2012-02-17 Thread Colin Watson
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

[Bug 927028] Re: 'apropos' maxes out CPU when run with '/bin/*' as argument

2012-02-17 Thread Colin Watson
Incidentally you'll find that, besides giving what I think is probably more like the right answer, 'whatis long list' 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

[Bug 927028] Re: 'apropos' maxes out CPU when run with '/bin/*' as argument

2012-02-17 Thread Ben Okopnik
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

[Bug 927028] Re: 'apropos' maxes out CPU when run with '/bin/*' as argument

2012-02-16 Thread Colin Watson
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 =

[Bug 927028] Re: 'apropos' maxes out CPU when run with '/bin/*' as argument

2012-02-16 Thread Ben Okopnik
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

[Bug 927028] Re: 'apropos' maxes out CPU when run with '/bin/*' as argument

2012-02-05 Thread Ben Okopnik
** 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