Re: cd //
Tanaka-Qtaro-Yasuhiro <tanaq@ca2.so-net.ne.jp> writes:
> 我が家にある Debian GNU/Linux 3.0 (Woody) で、
> $ cd //
> とやると、
> $ pwd
> //
> になります。
bash FAQ に次のようにあります。
| E10) Why does `cd //' leave $PWD as `//'?
|
| POSIX.2, in its description of `cd', says that *three* or more leading
| slashes may be replaced with a single slash when canonicalizing the
| current working directory.
|
| This is, I presume, for historical compatibility. Certain versions of
| Unix, and early network file systems, used paths of the form
| //hostname/path to access `path' on server `hostname'.
--
Hiroshi Fujishima
Fnews-brouse 1.9(20180406) -- by Mizuno, MWE <mwe@ccsf.jp>
GnuPG Key ID = ECC8A735
GnuPG Key fingerprint = 9BE6 B9E9 55A5 A499 CD51 946E 9BDC 7870 ECC8 A735