need implicit -a between ) and !

This commit is contained in:
Evan Gates 2015-05-13 14:18:13 -07:00 committed by sin
parent 347f0828f3
commit 86f9ce55a8
1 changed files with 1 additions and 1 deletions

2
find.c
View File

@ -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++;
}