Define `pathname-newest' in terms of `truename-exists?'.
authorChris Hanson <org/chris-hanson/cph>
Thu, 20 Aug 1987 03:02:50 +0000 (03:02 +0000)
committerChris Hanson <org/chris-hanson/cph>
Thu, 20 Aug 1987 03:02:50 +0000 (03:02 +0000)
v7/src/runtime/unxpth.scm

index 88dd78ff2012751be1e0d6ca2ff8c093e5021f57..95053c1a645f9045c802268ebcfa897c5f739255 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/unxpth.scm,v 1.5 1987/08/20 02:44:54 cph Exp $
+;;;    $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/unxpth.scm,v 1.6 1987/08/20 03:02:50 cph Exp $
 ;;;
 ;;;    Copyright (c) 1987 Massachusetts Institute of Technology
 ;;;
 
 (define (pathname-newest pathname)
   ;; For now, version numbers are disabled.
-  (pathname-new-version pathname false))
\ No newline at end of file
+  (let ((truename (pathname-new-version pathname false)))
+    (and (truename-exists? truename)
+        truename)))
\ No newline at end of file