Op Sun, 29 May 2005 23:11:52 +0200 (MET DST) schreef ik in <[EMAIL PROTECTED]>: : Hi, : : Here is a patch which will cause locate to read every database only : once. This will cause a functional change: When using multiple : databases /and/ multiple patterns, the order in which results are : output changes from {d1p1, d2p1, d1p2, d2p2} to {d1p1, d1p2, d2p1, : d2p2}. Also, --statistics can be combined with patterns to get : statistics on the matches, and --print (-p) can be used to output names : when they otherwise would not (because of -S/-c). [...]
Some notes: * I really tried to get this patch as small as possible. * The case-folding /can/ be done less often. * These changes prepare a path towards a ``--and'' (``-a'') option. * It is possible to allow reading a db from stdin. * Much of the ``main'' loop can be moved into ``visitor''s. (If/when this one gets applied, I intend to submit follow-up patches.) L8r, Buzz. -- ) | | ---/ ---/ Yes, this | This message consists of true | I do not -- | | / / really is | and false bits entirely. | mail for ) | | / / a 72 by 4 +-------------------------------+ any1 but -- \--| /--- /--- .sigfile. | |perl -pe "s.u(z)\1.as." | me. 4^re _______________________________________________ Bug-findutils mailing list Bug-findutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-findutils