(concatenate 'string string "/"))))
(defun sbcl-homedir-pathname ()
- (parse-native-namestring
- (ensure-trailing-slash (posix-getenv "SBCL_HOME"))))
+ (let ((sbcl-home (posix-getenv "SBCL_HOME")))
+ ;; SBCL_HOME isn't set for :EXECUTABLE T embedded cores
+ (when sbcl-home
+ (parse-native-namestring
+ (ensure-trailing-slash sbcl-home)))))
;;; (This is an ANSI Common Lisp function.)
(defun user-homedir-pathname (&optional host)
- "Return the home directory of the user as a pathname. If the
-HOME environment variable has be specified, returns the directory
-is designated, otherwise obtains the home directory from the
-operating system."
+ "Return the home directory of the user as a pathname. If the HOME
+environment variable has been specified, the directory it designates
+is returned; otherwise obtains the home directory from the operating
+system."
(declare (ignore host))
(parse-native-namestring
(ensure-trailing-slash
:report "Continue as if directory creation was successful."
nil)))
(setf created-p t)))))
- (values pathname created-p))))
+ (values pathspec created-p))))
(/show0 "filesys.lisp 1000")