From: Chris Hanson Date: Tue, 14 Feb 1995 00:33:54 +0000 (+0000) Subject: Redefine PATHNAME-WILD? under DOS/NT/OS2 so that it is true of any X-Git-Tag: 20090517-FFI~6648 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=48e4f04bf01cc050fa141d2084831886823af01a;p=mit-scheme.git Redefine PATHNAME-WILD? under DOS/NT/OS2 so that it is true of any pathname containing a * or ? in its file-namestring. --- diff --git a/v7/src/runtime/dospth.scm b/v7/src/runtime/dospth.scm index 4e233f67b..99b60fc3e 100644 --- a/v7/src/runtime/dospth.scm +++ b/v7/src/runtime/dospth.scm @@ -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))