tech-userlevel archive

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

Re: Support for boolean queries in apropos

> 2.  because parentheses are interpreted by the shell, 
>     permit [] in place of ()

[ ] are interpreted by the shell too, and (I'm not sure whether this
makes it worse, better, or what) different shells do it slightly
differently - though I'm not sure any of them do it in a way that
matters for most use cases here.  I will note, though, that using [ ]
for grouping clashes with using them for regex [] in at least some
cases; if we want to even allow adding regexes in the future, we might
want to use something else for grouping.

I note tcpdump uses ( ), for what that may be worth.  find does too,
though it the annoying restriction that each token of the expression
must be exactly one argument, so, while it may have some pieces worth
swiping, I would argue it is not a good paradigm to lift wholesale.

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML      
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

Home | Main Index | Thread Index | Old Index