On Sat, Jun 11, 2005 at 09:22:01PM +0200, Bas van Gompel wrote: > Hi, > > Here is the aforementioned patch, to allow a --and (-a) option to > locate. I hope you like it...
It's a good idea. However, "find" uses "-a" for and, like this find path predicate1 -a predicate2 -a predicate3 which allows this to make sense as well find path predicate1 -a ( predicate2 -o predicate3 ) therefore if we're having an option of this sort in "locate" I'd prefer it either 1. to follow the pattern of "find" for consistency (hence reducing the unexpectedness of the command line interface) - meaning that one would put the "-a" between patterns that one expects to both be matched or 2. call the option "--all" instead of "-and" to not have the short form "-a". This allows us the option to later implement "-a" like find. Any comments from other list members? James. _______________________________________________ Bug-findutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-findutils
