tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Support for boolean queries in apropos



On Tue, 13 Mar 2012 22:13:10 +0000
David Laight <david%l8s.co.uk@localhost> wrote:

> On Tue, Mar 13, 2012 at 10:03:25PM +0100, Joerg Sonnenberger wrote:
> > On Wed, Mar 14, 2012 at 02:24:42AM +0530, Abhinav Upadhyay wrote:
> > > I apologize but I lost the context a bit here, what do you mean by the
> > > minus operator ? If you mean to represent the boolean NOT operator
> > > using a '-' then I think it makes sense, easy to type and succinct as
> > > well.
> > 
> > No, using "-" to present binary not is a bad choice. apropos uses
> > getopt and requiring the use of "--" to terminate the option list is a
> > bad idea.
> 
> You also don't want to use & and | as these will also need quoting.

True, unless complex queries had to be provided as a single string,
expecting the user to use quotes as necessary, i.e.:

apropos "some query"

In which case using + or - would also work
-- 
Matt


Home | Main Index | Thread Index | Old Index