Redefine PATHNAME-WILD? under DOS/NT/OS2 so that it is true of any
authorChris Hanson <org/chris-hanson/cph>
Tue, 14 Feb 1995 00:33:54 +0000 (00:33 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 14 Feb 1995 00:33:54 +0000 (00:33 +0000)
pathname containing a * or ? in its file-namestring.

v7/src/runtime/dospth.scm

index 4e233f67b953c05c3e95b42e38a7fb122b27c99e..99b60fc3ee38e289959967ff7c1d3ddddc922736 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: dospth.scm,v 1.22 1995/01/31 19:34:38 cph Exp $
+$Id: dospth.scm,v 1.23 1995/02/14 00:33:54 cph Exp $
 
 Copyright (c) 1992-95 Massachusetts Institute of Technology
 
@@ -300,8 +300,9 @@ MIT in each case. |#
 ;;;; Miscellaneous
 
 (define (dos/pathname-wild? pathname)
-  (or (eq? 'WILD (%pathname-name pathname))
-      (eq? 'WILD (%pathname-type pathname))))
+  (let ((namestring (file-namestring pathname)))
+    (or (string-find-next-char namestring #\*)
+       (string-find-next-char namestring #\?))))
 
 (define (dos/pathname->truename pathname)
   (if (eq? #t (file-exists? pathname))