[hackers] [sbase] need implicit -a between ) and ! || Evan Gates

From: <git_AT_suckless.org>
Date: Thu, 14 May 2015 00:43:42 +0200 (CEST)

commit 86f9ce55a801c5ffc80734960ae35312f814b4d2
Author: Evan Gates <evan.gates_AT_gmail.com>
Date: Wed May 13 14:18:13 2015 -0700

    need implicit -a between ) and !

diff --git a/find.c b/find.c
index 980065a..5fee682 100644
--- a/find.c
+++ b/find.c
_AT_@ -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++;
                         }
Received on Thu May 14 2015 - 00:43:42 CEST

This archive was generated by hypermail 2.3.0 : Thu May 14 2015 - 00:48:14 CEST