[LISPWORKS][Common Lisp HyperSpec (TM)] [Previous][Up][Next]


Function USER-HOMEDIR-PATHNAME

Syntax:

user-homedir-pathname &optional host => pathname

Arguments and Values:

host---a string, a list of strings, or :unspecific.

pathname---a pathname, or nil.

Description:

user-homedir-pathname determines the pathname that corresponds to the user's home directory on host. If host is not supplied, its value is implementation-dependent. For a description of :unspecific, see Section 19.2.1 (Pathname Components).

The definition of home directory is implementation-dependent, but defined in Common Lisp to mean the directory where the user keeps personal files such as initialization files and mail.

user-homedir-pathname returns a pathname without any name, type, or version component (those components are all nil) for the user's home directory on host.

If it is impossible to determine the user's home directory on host, then nil is returned. user-homedir-pathname never returns nil if host is not supplied.

Examples:

 (pathnamep (user-homedir-pathname)) =>  true

Side Effects: None.

Affected By:

The host computer's file system, and the implementation.

Exceptional Situations: None.

See Also: None.

Notes: None.


The following X3J13 cleanup issue, not part of the specification, applies to this section:


[Starting Points][Contents][Index][Symbols][Glossary][Issues]
Copyright 1996-2005, LispWorks Ltd. All rights reserved.