From owner-freebsd-current@FreeBSD.ORG Wed Feb 23 21:37:45 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E51E716A4CE for ; Wed, 23 Feb 2005 21:37:45 +0000 (GMT) Received: from freebee.digiware.nl (dsl439.iae.nl [212.61.63.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78C3F43D2F for ; Wed, 23 Feb 2005 21:37:44 +0000 (GMT) (envelope-from wjw@withagen.nl) Received: from [212.61.27.71] (dual.digiware.nl [212.61.27.71]) by freebee.digiware.nl (8.13.1/8.13.1) with ESMTP id j1NLbU2s056674; Wed, 23 Feb 2005 22:37:31 +0100 (CET) (envelope-from wjw@withagen.nl) Message-ID: <421CF7B8.8010804@withagen.nl> Date: Wed, 23 Feb 2005 22:38:00 +0100 From: Willem Jan Withagen User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Julian H. Stacey" References: <200502231335.j1NDZ7Z0046813@fire.jhs.private> In-Reply-To: <200502231335.j1NDZ7Z0046813@fire.jhs.private> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: vova@fbsd.ru cc: freebsd-current@freebsd.org cc: andreas.kohn@gmx.net cc: chet.ramey@case.edu Subject: Re: cd into // works? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2005 21:37:46 -0000 Julian H. Stacey wrote: > Chet Ramey wrote: > >>>>due to a typo, I typed >>>> >>>>[klamath] ~>cd // >>>> >>>>today. Okay, I'm used to the shell[1] changing any // into /, so I >>>>expected to get to /. Now, I got there, but pwd/$PWD still have "//" in >>>>them? >> >>This is from the 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'. > > > I recall PCS Cadmus supported eg /../other_hostname/usr/other_person (on > Unix Graphics workstations with proprietary networking extension). Dare I say Apollo Domain? Which was my first introduction into what was almost Unix..... / went to the root of the file system of the workstation you're on // made you go anywhere on the tokenring you wanted. There where a lot of packages that where ported from "real Unix" that did not quite cope with this concept. Sadly Apollo Domain and OS died when they got aquired by HP. It was a lot of fun working on them. --WjW