#| -*-Scheme-*-
-$Id: unxprm.scm,v 1.56 1999/09/11 03:27:41 cph Exp $
+$Id: unxprm.scm,v 1.57 1999/12/16 22:24:58 cph Exp $
Copyright (c) 1988-1999 Massachusetts Institute of Technology
(let ((directory ((ucode-primitive get-user-home-directory 1) user-name)))
(if (not directory)
(error "Can't find user's home directory:" user-name))
- directory))
+ (pathname-as-directory directory)))
(define (current-home-directory)
- (or (get-environment-variable "HOME")
- (user-home-directory (current-user-name))))
+ (let ((home (get-environment-variable "HOME")))
+ (if home
+ (pathname-as-directory home)
+ (user-home-directory (current-user-name)))))
(define (current-user-name)
(or (get-environment-variable "USER")