sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 86f9ce55a801c5ffc80734960ae35312f814b4d2
parent 347f0828f3b13f3ddca7ca74edce7cf1cd298d73
Author: Evan Gates <evan.gates@gmail.com>
Date:   Wed, 13 May 2015 14:18:13 -0700

need implicit -a between ) and !

Diffstat:
Mfind.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/find.c b/find.c @@ -799,7 +799,7 @@ parse(int argc, char **argv) } else if ((op = find_op(*arg))) { /* token is an operator */ if (lasttype == LPAR && op->type == RPAR) eprintf("empty parens\n"); - if (lasttype == PRIM && op->type == NOT) { /* need another implicit -a */ + if ((lasttype == PRIM || lasttype == RPAR) && op->type == NOT) { /* need another implicit -a */ *tok++ = and; ntok++; }