Control: tag -1 fixed-upstream On Sat, Jun 23, 2012 at 12:36:54PM -0400, A. Costa wrote: > Testing 'apropos --and' today returns two false hits and 49 misses: > > % apropos --and file list > sync (1) - flush filesystem buffers > tzfile (5) - time zone information > > # Those misses: > % apropos file | grep -i list | wc -l > 49
Thanks for your report. I appear to have completely broken the --and option with my performance optimisation work in man-db 2.6.2; apologies for that. I've figured this out and committed a fix for my next upstream release. Sorry for the delay. Mon Jul 8 02:15:52 BST 2013 Colin Watson <[email protected]> Reimplement 'apropos --and' in a way that works with the optimisations introduced in 2.6.2 (Debian bug #678670). * src/whatis.c (any_set, all_set): New functions. (parse_name, parse_whatis): Take an additional found_here parameter and set its elements. Return void. (do_apropos): Combine results from parse_name and parse_whatis properly according to whether --and is set, rather than relying on counters that will only ever coincidentally match the number of search keywords. (main): Remove apropos_seen hash table. * NEWS: Document this. Regards, -- Colin Watson [[email protected]] -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

