trying file-match i got the following-error:
mb12(aix2 ~):scsh
Scsh 0.3
> (file-match "v14" #f "" file-directory?)
Error: 2
"No such file or directory"
#{Procedure 8310}
1> (file-directory? "v14/develop/rt")
#t
i think that 'file-match' finds a symlink which could not be resolved.
Yes, that is exactly the bug.
is there a way to say file-match to resolve or not to resolve symlinks
say like the 'find -follow' option?
This fix won't work in the general case. I did something different.
FILE-MATCH now catches errors raised by a filter predicate, and treats them
as match-failure -- as if the predicate simply returned #f. I installed the
fix this morning; it'll be out soon when we release 0.4.
Thanks for reporting this interesting bug.
-Olin
|