Kaydet (Commit) 75745875 authored tarafından Barry Warsaw's avatar Barry Warsaw

Document the new join() semantics.

üst fbd64c87
...@@ -79,22 +79,12 @@ different device than \var{p}, or whether \file{\var{p}/..} and ...@@ -79,22 +79,12 @@ different device than \var{p}, or whether \file{\var{p}/..} and
detect mount points for all \UNIX{} and POSIX variants. detect mount points for all \UNIX{} and POSIX variants.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{join}{p\, q} \begin{funcdesc}{join}{p\optional{\, q\optional{\, ...}}}
Join the paths Joins one or more path components intelligently. If any component is
\var{p} an absolute path, all previous components are thrown away, and joining
and continues. The return value is the concatenation of \var{p}, and
\var{q} intelligently: optionally \var{q}, etc., with exactly one slash (\code{'/'}) inserted
If between components, unless \var{p} is empty.
\var{q}
is an absolute path, the return value is
\var{q}.
Otherwise, the concatenation of
\var{p}
and
\var{q}
is returned, with a slash (\code{'/'}) inserted unless
\var{p}
is empty or ends in a slash.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{normcase}{p} \begin{funcdesc}{normcase}{p}
......
...@@ -79,22 +79,12 @@ different device than \var{p}, or whether \file{\var{p}/..} and ...@@ -79,22 +79,12 @@ different device than \var{p}, or whether \file{\var{p}/..} and
detect mount points for all \UNIX{} and POSIX variants. detect mount points for all \UNIX{} and POSIX variants.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{join}{p\, q} \begin{funcdesc}{join}{p\optional{\, q\optional{\, ...}}}
Join the paths Joins one or more path components intelligently. If any component is
\var{p} an absolute path, all previous components are thrown away, and joining
and continues. The return value is the concatenation of \var{p}, and
\var{q} intelligently: optionally \var{q}, etc., with exactly one slash (\code{'/'}) inserted
If between components, unless \var{p} is empty.
\var{q}
is an absolute path, the return value is
\var{q}.
Otherwise, the concatenation of
\var{p}
and
\var{q}
is returned, with a slash (\code{'/'}) inserted unless
\var{p}
is empty or ends in a slash.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{normcase}{p} \begin{funcdesc}{normcase}{p}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment