[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Patch] Locate: New option: --and
From: |
James Youngman |
Subject: |
Re: [Patch] Locate: New option: --and |
Date: |
Sat, 11 Jun 2005 23:40:34 +0100 |
User-agent: |
Mutt/1.3.28i |
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.