scsh-users
[Top] [All Lists]

file-match bug fixed

To: mb12@coconet.de
Subject: file-match bug fixed
From: Olin Shivers <shivers@clark.lcs.mit.edu>
Date: Sat, 21 Oct 95 08:19:50 -0400
Cc: scsh-bugs@martigny.ai.mit.edu
Reply-to: shivers@mintaka.lcs.mit.edu
   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

<Prev in Thread] Current Thread [Next in Thread>
  • file-match bug fixed, Olin Shivers <=