[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Mon Mar 15 18:46:56 2004 -->
- <!--x-from-r13: zvxr ng glqrevn.arg ([vxr [hecul) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: D4CEC148-76CE-11D8-B8C2-[email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] Quick LInux Quiz -->
- <li><em>date</em>: Mon Mar 15 18:46:56 2004</li>
- <li><em>from</em>: mike at tyderia.net (Mike Murphy)</li>
- <li><em>in-reply-to</em>: <<a href="msg00543.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00529.html">[email protected]</a>> <<a href="msg00530.html">[email protected]</a>> <<a href="msg00531.html">[email protected]</a>> <<a href="msg00536.html">[email protected]</a>> <<a href="msg00543.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] Quick LInux Quiz</li>
[blockquote:]
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'.
[/blockquote]
I don't personally know what they were referring to here. I was planning
on asking a couple of the very experienced engineers (unix since the mid
seventies in one case) around the office that might know better.
Mike
Geoffrey wrote:
> Mike Murphy wrote:
>
>> the CHANGES included with the source says:
>>
>> "Pathname canonicalization now leaves a leading `//' intact, as
>> POSIX.1 requires."
>>
>> That's in the release notes for bash-2.01-release.
>>
>> So it seems this was on purpose. In notes for newer releases there are
>> number of allusions to adjustments to // behavior, so it seems that
>> maybe this hasn't been a happy feature, but I think its definately a
>> feature.
>>
>> Looking harder, at the BASH FAQ this time, I see:
>>
>> 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'.
>
>
> I've been around various flavors of Unix and various esoteric Unix
> networks since 1985 and I've never seen any of them that had such an
> approach. Care to elaborate?
>
>
--
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Mike Murphy
781 Inman Mews Drive Atlanta GA 30307
Landline: 404-653-1070
Mobile: 404-545-6234
Email: mike at tyderia.net
Email Pager: pagemike at tyderia.net
AIM: mmichael453
JDAM: 33:45:14.0584N 84:21:43.038W
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00546" href="msg00546.html">[ale] Quick LInux Quiz</a></strong>
<ul><li><em>From:</em> ups at tree.com (Stephan Uphoff)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00529" href="msg00529.html">[ale] Quick LInux Quiz</a></strong>
<ul><li><em>From:</em> mhirsch at nubridges.com (Michael D. Hirsch)</li></ul></li>
<li><strong><a name="00530" href="msg00530.html">[ale] Quick LInux Quiz</a></strong>
<ul><li><em>From:</em> vinson.lists at charter.net (Jason Vinson)</li></ul></li>
<li><strong><a name="00531" href="msg00531.html">[ale] Quick LInux Quiz</a></strong>
<ul><li><em>From:</em> mike at tyderia.net (Mike Murphy)</li></ul></li>
<li><strong><a name="00536" href="msg00536.html">[ale] Quick LInux Quiz</a></strong>
<ul><li><em>From:</em> mike at tyderia.net (Mike Murphy)</li></ul></li>
<li><strong><a name="00543" href="msg00543.html">[ale] Quick LInux Quiz</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00543.html">[ale] Quick LInux Quiz</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00545.html">[ale] Webhosting + domainname</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00543.html">[ale] Quick LInux Quiz</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00546.html">[ale] Quick LInux Quiz</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00544"><strong>Date</strong></a></li>
<li><a href="threads.html#00544"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>