|
10543 | 10543 | other files, possibly including other directory files.
|
10544 | 10544 | The \defn{parent directory} of a directory is
|
10545 | 10545 | the directory that both contains a
|
10546 |
| -directory entry for the given directory and is represented by the filename |
10547 |
| -\grammarterm{dot-dot} in the given directory. |
| 10546 | +directory entry for the given directory and is represented by the dot-dot |
| 10547 | +filename\iref{fs.path.generic} in the given directory. |
10548 | 10548 | The \defn{parent directory}
|
10549 | 10549 | of other types of files is a directory containing a directory
|
10550 | 10550 | entry for the file under discussion.
|
|
11231 | 11231 |
|
11232 | 11232 | \pnum
|
11233 | 11233 | A \defn{filename} is
|
11234 |
| -the name of a file. Filenames \grammarterm{dot} and \grammarterm{dot-dot}, |
| 11234 | +the name of a file. The \defnx{dot}{dot!filename} and \defnx{dot-dot}{dot-dot!filename} filenames, |
11235 | 11235 | consisting solely of one and two period characters respectively,
|
11236 | 11236 | have special meaning.
|
11237 | 11237 | The following characteristics of filenames are operating system dependent:
|
@@ -11259,10 +11259,10 @@
|
11259 | 11259 | be the same as one \grammarterm{directory-separator} character.
|
11260 | 11260 |
|
11261 | 11261 | \pnum
|
11262 |
| -The filename \grammarterm{dot} is treated as a reference to the current directory. |
11263 |
| -The filename \grammarterm{dot-dot} is treated as a reference to the parent directory. |
11264 |
| -What the filename \grammarterm{dot-dot} refers to |
11265 |
| -relative to \grammarterm{root-directory} is \impldef{meaning of \grammarterm{dot-dot} in \grammarterm{root-directory}}. |
| 11262 | +The dot filename is treated as a reference to the current directory. |
| 11263 | +The dot-dot filename is treated as a reference to the parent directory. |
| 11264 | +What the dot-dot filename refers to |
| 11265 | +relative to \grammarterm{root-directory} is \impldef{meaning of dot-dot in \grammarterm{root-directory}}. |
11266 | 11266 | Specific filenames may have special meanings for a particular operating system.
|
11267 | 11267 |
|
11268 | 11268 | \pnum
|
@@ -11300,14 +11300,14 @@
|
11300 | 11300 | \begin{note}
|
11301 | 11301 | The generic pathname grammar\iref{fs.path.generic} defines \grammarterm{directory-separator} as one or more slashes and \grammarterm{preferred-separator}{s}.
|
11302 | 11302 | \end{note}
|
11303 |
| -\item Remove each \grammarterm{dot} filename and any immediately following \grammarterm{directory-separator}. |
11304 |
| -\item As long as any appear, remove a non-\grammarterm{dot-dot} filename immediately followed by a \grammarterm{directory-separator} and a \grammarterm{dot-dot} filename, along with any immediately following \grammarterm{directory-separator}. |
11305 |
| -\item If there is a \grammarterm{root-directory}, remove all \grammarterm{dot-dot} filenames and any \grammarterm{directory-separator}{s} immediately following them. |
| 11303 | +\item Remove each dot filename and any immediately following \grammarterm{directory-separator}. |
| 11304 | +\item As long as any appear, remove a non-dot-dot filename immediately followed by a \grammarterm{directory-separator} and a dot-dot filename, along with any immediately following \grammarterm{directory-separator}. |
| 11305 | +\item If there is a \grammarterm{root-directory}, remove all dot-dot filenames and any \grammarterm{directory-separator}{s} immediately following them. |
11306 | 11306 | \begin{note}
|
11307 |
| -These \grammarterm{dot-dot} filenames attempt to refer to nonexistent parent directories. |
| 11307 | +These dot-dot filenames attempt to refer to nonexistent parent directories. |
11308 | 11308 | \end{note}
|
11309 |
| -\item If the last filename is \grammarterm{dot-dot}, remove any trailing \grammarterm{directory-separator}. |
11310 |
| -\item If the path is empty, add a \grammarterm{dot}. |
| 11309 | +\item If the last filename is dot-dot, remove any trailing \grammarterm{directory-separator}. |
| 11310 | +\item If the path is empty, add a dot. |
11311 | 11311 | \end{enumerate}
|
11312 | 11312 |
|
11313 | 11313 | The result of normalization is a path in \defnx{normal form}{normal form!path},
|
|
12462 | 12462 | \begin{itemize}
|
12463 | 12463 | \item if \tcode{a == end()} and \tcode{b == base.end()}, returns \tcode{path(".")}; otherwise
|
12464 | 12464 | \item let \tcode{n} be the number of \grammarterm{filename} elements in \range{b}{base.end()}
|
12465 |
| -that are not \grammarterm{dot} or \grammarterm{dot-dot} minus the number that are \grammarterm{dot-dot}. |
| 12465 | +that are not dot or dot-dot minus the number that are dot-dot. |
12466 | 12466 | If \tcode{n<0,} returns \tcode{path()}; otherwise
|
12467 | 12467 | \item returns an object of class \tcode{path} that is default-constructed, followed by
|
12468 | 12468 | \begin{itemize}
|
|
13807 | 13807 | constructed with filename of the directory entry appended as if by \tcode{operator/=}.
|
13808 | 13808 |
|
13809 | 13809 | \pnum
|
13810 |
| -Directory iteration shall not yield directory entries for the current (\grammarterm{dot}) |
13811 |
| -and parent (\grammarterm{dot-dot}) directories. |
| 13810 | +Directory iteration shall not yield directory entries for the current (dot) |
| 13811 | +and parent (dot-dot) directories. |
13812 | 13812 |
|
13813 | 13813 | \pnum
|
13814 | 13814 | The order of directory entries obtained by dereferencing successive
|
|
14371 | 14371 | \begin{itemdescr}
|
14372 | 14372 | \pnum
|
14373 | 14373 | \effects Converts \tcode{p} to an absolute
|
14374 |
| -path that has no symbolic link, \grammarterm{dot}, or \grammarterm{dot-dot} elements |
| 14374 | +path that has no symbolic link, dot, or dot-dot elements |
14375 | 14375 | in its pathname in the generic format.
|
14376 | 14376 |
|
14377 | 14377 | \pnum
|
|
0 commit comments