find: support for !

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

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;
}