On Fri, 12 Dec 2008, Ketil Froyn wrote: > On Fri, 12 Dec 2008, Santiago Vila wrote: > > > On Fri, 12 Dec 2008, Ketil Froyn wrote: > > > > > The -S option probably means --substitute-cost=NUM, not > > > --max-errors=NUM as suggested by the man-page (see Bug#508547). > > > > Exactly. The manpage for version 0.7.5 now reads: > > > > -S NUM, --substitute-cost=NUM > > > > Thanks again, but this seems to be already fixed. > > None of the other options worked either, including --max-errors=NUM > (see test output). Is that fixed as well?
Try dropping -B option. By reading src/agrep.c, it seems -B overrides --max-errors. This is the command line parsing code: case 'B': /* Select only the records which have the best match. */ best_match = 1; break; case 'E': /* Set the maximum number of errors allowed for a record to match. */ match_params.max_cost = atoi(optarg); max_cost_set = 1; break; and this is where match_params.max_cost is overridden: if (best_match) match_params.max_cost = best_cost; -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org