find: support for !

This commit is contained in:
Denis Vlasenko committed 2007-02-04 17:11:25 +00:00
1 parent 10b7996c1b
commit cf787cf3a5
3 files changed
+56 -9

No files matched your search

+1 -1
View File
@@ -1278,7 +1278,7 @@ struct op *scantree(struct op *head)
DBGPRINTF5(("SCANTREE: checking node %p\n", head));
if ((head->type != TDOT) && (strcmp(".", head->words[0]) == 0)) {
if ((head->type != TDOT) && LONE_CHAR(head->words[0], '.')) {
DBGPRINTF5(("SCANTREE: dot found in node %p\n", head));
return head;
}