I noticed that a pattern like "abc*" doesn't match the file "abc", as I think it should. Here's a li'l patch... -brad diff -u -r1.1 globbing.c --- globbing.c 2003/06/11 02:10:49 1.1 +++ globbing.c 2003/06/11 07:09:32 @@ -77,6 +77,9 @@ } /* while */ + if (*wildptr == '*') + wildptr++; + return(*fnameptr == *wildptr); } /* matchesPattern */