need implicit -a between ) and !
This commit is contained in:
parent
347f0828f3
commit
86f9ce55a8
2
find.c
2
find.c
@ -799,7 +799,7 @@ parse(int argc, char **argv)
|
|||||||
} else if ((op = find_op(*arg))) { /* token is an operator */
|
} else if ((op = find_op(*arg))) { /* token is an operator */
|
||||||
if (lasttype == LPAR && op->type == RPAR)
|
if (lasttype == LPAR && op->type == RPAR)
|
||||||
eprintf("empty parens\n");
|
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;
|
*tok++ = and;
|
||||||
ntok++;
|
ntok++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user