257 lines
No EOL
5.5 KiB
HTML
257 lines
No EOL
5.5 KiB
HTML
<!DOCTYPE HTML>
|
|
<HTML LANG="en-us"
|
|
><HEAD
|
|
><TITLE
|
|
>user-homedir-pathname | Common Lisp Nova Spec</TITLE
|
|
><META CHARSET="US-ASCII"
|
|
><LINK REL="canonical" HREF="f_user-homedir-pathname.html"
|
|
><LINK REL="next" HREF="26_Glossary.html" TYPE="text/html" TITLE="26. Glossary"
|
|
><LINK REL="prev" HREF="f_software-type.html" TYPE="text/html" TITLE="software-type, software-version"
|
|
><LINK REL="up" HREF="25_2_Environment_Dictionary.html" TYPE="text/html" TITLE="25.2 Environment Dictionary"
|
|
><LINK REL="start" HREF="index.html" TYPE="text/html" TITLE="Common Lisp Nova Spec"
|
|
><META NAME="VIEWPORT" CONTENT="width=device-width, initial-scale=1.0"
|
|
><LINK REL="STYLESHEET" HREF="dpans.css%3F3909942064.css"
|
|
><SCRIPT SRC="dpans.js%3F3909942064"
|
|
></SCRIPT
|
|
><SCRIPT SRC="apropos.js%3F3909942064"
|
|
></SCRIPT
|
|
></HEAD
|
|
><BODY
|
|
><DIV
|
|
><DIV CLASS="topnav"
|
|
><DIV CLASS="breadcrumb"
|
|
><SPAN CLASS="breadcrumb-item"
|
|
><A HREF="index.html"
|
|
>Common Lisp Nova Spec</A
|
|
></SPAN
|
|
> <SPAN CLASS="breadcrumb-item"
|
|
>→ <A HREF="25_Environment.html"
|
|
>25. Environment</A
|
|
></SPAN
|
|
> <SPAN CLASS="breadcrumb-item"
|
|
>→ <A HREF="25_2_Environment_Dictionary.html"
|
|
>25.2 Environment Dictionary</A
|
|
></SPAN
|
|
> <SPAN CLASS="breadcrumb-item"
|
|
>→ <A HREF="f_user-homedir-pathname.html"
|
|
>user-homedir-pathname</A
|
|
></SPAN
|
|
></DIV
|
|
><DIV CLASS="apropos"
|
|
><DIV CLASS="apropos-io"
|
|
><A HREF="f_software-type.html" CLASS="prev"
|
|
>←</A
|
|
><SPAN ID="apropos-label"
|
|
>Apropos </SPAN
|
|
><INPUT ID="apropos" AUTOFOCUS="AUTOFOCUS" PLACEHOLDER="Type here to search" ONINPUT="aproposInput(this);" ONKEYUP="aproposKeyup(event);" ONCHANGE="aproposChange(this);" ONFOCUS="aproposFocus(this);" ONFOCUSOUT="aproposFocusout(this);"
|
|
><A HREF="26_Glossary.html" CLASS="next"
|
|
>→</A
|
|
></DIV
|
|
><DIV ID="apropos-res"
|
|
></DIV
|
|
></DIV
|
|
></DIV
|
|
><DIV CLASS="matter"
|
|
><DIV CLASS="com"
|
|
><DIV CLASS="begincom"
|
|
><HR
|
|
><TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0"
|
|
><TR
|
|
><TD ALIGN="LEFT" VALIGN="BASELINE" WIDTH="100%" CLASS="name"
|
|
><SPAN CLASS="idx" DATA-KIND="idxref" DATA-TERM="user-homedir-pathname"
|
|
></SPAN
|
|
><B
|
|
>user-homedir-pathname</B
|
|
></TD
|
|
><TD ALIGN="RIGHT" VALIGN="BASELINE" WIDTH="0" NOWRAP="NOWRAP" CLASS="ftype"
|
|
><I
|
|
>Function</I
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
></DIV
|
|
><UL CLASS="subtoc"
|
|
></UL
|
|
><DL
|
|
><DT
|
|
><B
|
|
>Syntax</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
><B
|
|
>user-homedir-pathname</B
|
|
> <SPAN CLASS="cmtt"
|
|
>&optional</SPAN
|
|
> <SPAN CLASS="cmssi"
|
|
>host</SPAN
|
|
> <SPAN CLASS="arrow"
|
|
>→</SPAN
|
|
> <SPAN CLASS="cmssi"
|
|
>pathname</SPAN
|
|
></P
|
|
></DD
|
|
><DT
|
|
><B
|
|
>Arguments and Values</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
><VAR CLASS="param"
|
|
>host</VAR
|
|
> — a <A HREF="26_1_Glossary.html#string"
|
|
><EM CLASS="term"
|
|
>string</EM
|
|
></A
|
|
>, a <A HREF="26_1_Glossary.html#list"
|
|
><EM CLASS="term"
|
|
>list</EM
|
|
></A
|
|
> of <A HREF="26_1_Glossary.html#string"
|
|
><EM CLASS="term"
|
|
>strings</EM
|
|
></A
|
|
>, or <SPAN CLASS="kwd"
|
|
><SPAN CLASS="cmtt"
|
|
>:unspecific</SPAN
|
|
></SPAN
|
|
>. </P
|
|
><P CLASS="j"
|
|
><VAR CLASS="param"
|
|
>pathname</VAR
|
|
> — a <A HREF="26_1_Glossary.html#pathname"
|
|
><EM CLASS="term"
|
|
>pathname</EM
|
|
></A
|
|
>, or <SPAN CLASS="misc"
|
|
><B
|
|
>nil</B
|
|
></SPAN
|
|
>.</P
|
|
></DD
|
|
><DT
|
|
><B
|
|
>Description</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
><A HREF="f_user-homedir-pathname.html" CLASS="funref"
|
|
><B
|
|
>user-homedir-pathname</B
|
|
></A
|
|
> determines the <A HREF="26_1_Glossary.html#pathname"
|
|
><EM CLASS="term"
|
|
>pathname</EM
|
|
></A
|
|
> that corresponds to the user’s home directory on <VAR CLASS="param"
|
|
>host</VAR
|
|
>. If <VAR CLASS="param"
|
|
>host</VAR
|
|
> is not supplied, its value is <A HREF="26_1_Glossary.html#implementation-dependent"
|
|
><EM CLASS="term"
|
|
>implementation-dependent</EM
|
|
></A
|
|
>. For a description of <SPAN CLASS="kwd"
|
|
><SPAN CLASS="cmtt"
|
|
>:unspecific</SPAN
|
|
></SPAN
|
|
>, see <A HREF="19_2_Pathnames.html#sec_19_2_1" CLASS="secref"
|
|
><SPAN CLASS="cmr"
|
|
>Section</SPAN
|
|
> <SPAN CLASS="cmr"
|
|
>19.2.1</SPAN
|
|
> <SPAN CLASS="cmr"
|
|
>(Pathname</SPAN
|
|
> <SPAN CLASS="cmr"
|
|
>Components)</SPAN
|
|
></A
|
|
>. </P
|
|
><P CLASS="j"
|
|
>The definition of home directory is <A HREF="26_1_Glossary.html#implementation-dependent"
|
|
><EM CLASS="term"
|
|
>implementation-dependent</EM
|
|
></A
|
|
>, but defined in Common Lisp to mean the directory where the user keeps personal files such as initialization files and mail. </P
|
|
><P CLASS="j"
|
|
><A HREF="f_user-homedir-pathname.html" CLASS="funref"
|
|
><B
|
|
>user-homedir-pathname</B
|
|
></A
|
|
> returns a <A HREF="26_1_Glossary.html#pathname"
|
|
><EM CLASS="term"
|
|
>pathname</EM
|
|
></A
|
|
> without any name, type, or version component (those components are all <SPAN CLASS="misc"
|
|
><B
|
|
>nil</B
|
|
></SPAN
|
|
>) for the user’s home directory on <VAR CLASS="param"
|
|
>host</VAR
|
|
>. </P
|
|
><P CLASS="j"
|
|
>If it is impossible to determine the user’s home directory on <VAR CLASS="param"
|
|
>host</VAR
|
|
>, then <SPAN CLASS="misc"
|
|
><B
|
|
>nil</B
|
|
></SPAN
|
|
> is returned. <A HREF="f_user-homedir-pathname.html" CLASS="funref"
|
|
><B
|
|
>user-homedir-pathname</B
|
|
></A
|
|
> never returns <SPAN CLASS="misc"
|
|
><B
|
|
>nil</B
|
|
></SPAN
|
|
> if <VAR CLASS="param"
|
|
>host</VAR
|
|
> is not supplied.</P
|
|
></DD
|
|
><DT
|
|
><B
|
|
>Examples</B
|
|
></DT
|
|
><DD
|
|
><PRE CLASS="screen"
|
|
>(pathnamep (user-homedir-pathname)) <SPAN CLASS="cmsy"
|
|
><SPAN CLASS="arrow"
|
|
>→</SPAN
|
|
></SPAN
|
|
> <A HREF="26_1_Glossary.html#true"
|
|
><EM CLASS="term"
|
|
>true</EM
|
|
></A
|
|
></PRE
|
|
></DD
|
|
><DT
|
|
><B
|
|
>Affected By</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
>The host computer’s file system, and the <A HREF="26_1_Glossary.html#implementation"
|
|
><EM CLASS="term"
|
|
>implementation</EM
|
|
></A
|
|
>.</P
|
|
></DD
|
|
></DL
|
|
></DIV
|
|
></DIV
|
|
><DIV CLASS="footer"
|
|
><DIV CLASS="btmnav"
|
|
><A HREF="f_software-type.html" CLASS="prev"
|
|
>←</A
|
|
><A HREF="26_Glossary.html" CLASS="next"
|
|
>→</A
|
|
></DIV
|
|
><DIV CLASS="trail"
|
|
>Conversion to HTML copyright 2023 by Gilbert Baumann</DIV
|
|
></DIV
|
|
></DIV
|
|
><SCRIPT
|
|
>domReady();</SCRIPT
|
|
></BODY
|
|
></HTML
|
|
> |