tags 259338 fixed-upstream
thanks

On Wed, Jul 14, 2004 at 10:16:41AM +0100, Colin Watson wrote:
> On Wed, Jul 14, 2004 at 01:17:37AM -0400, A Costa wrote:
> > 'apropos' allows multiple keywords.  It ORs them.  So 'apropops n1 n2' 
> > finds strings with 'n1' OR 'n2'.  Redundantly, it turns out.
> [...]
> > I suspect that as 'apropos' checks its keywords, it just adds on
> > results of each search.  A test of this:
> 
> Yup. apropos is pretty stupid internally: it just prints stuff out as it
> finds it. At the same time, I don't want to stop it printing stuff out
> as it goes, because that's a useful feedback mechanism that it's doing
> something on slower computers or when network mounts are involved or
> similar kinds of situations. Maybe I should make it add matches to a
> hashtable internally, thereby brute-force uniquifying them.

I've now done this, so this fix will be in man-db 2.5.0.

Wed Aug 29 09:26:23 BST 2007  Colin Watson  <[EMAIL PROTECTED]>

        * src/whatis.c (apropos): Add output keys to a hashtable, and skip
          any that have already been seen (Debian bug #259338).
          (main): Create the hashtable on startup and free it on exit.

Thanks,

-- 
Colin Watson                                       [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to