From 86f9ce55a801c5ffc80734960ae35312f814b4d2 Mon Sep 17 00:00:00 2001 From: Evan Gates Date: Wed, 13 May 2015 14:18:13 -0700 Subject: [PATCH] need implicit -a between ) and ! --- find.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/find.c b/find.c index 980065a..5fee682 100644 --- 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++; }