Russell, I've just had a quick look at your modifications to match.c. If I understand your code the wildchar pattern - *books.doc would be parsed by your code just the same as - *.doc and hence would match all files with the .doc extension. If I am correct, this would need rectifying. Angus