All pastes #192193 Raw Edit

dash negation[:...:]

public c v1 · immutable
·published 2006-10-05 19:21 UTC
rendered paste body
diff --git a/src/expand.c b/src/expand.cindex cf64921..db67c7c 100644--- a/src/expand.c+++ b/src/expand.c@@ -1581,7 +1581,7 @@ pmatch(const char *pattern, const char * 				if (c == '[') { 					const char *r; -					found |= ccmatch(p, chr, &r);+					found |= !!ccmatch(p, chr, &r); 					if (r) { 						p = r; 						continue;