From owner-freebsd-questions Thu Dec 13 19:21:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from catalyst.sasknow.net (catalyst.sasknow.net [207.195.92.130]) by hub.freebsd.org (Postfix) with ESMTP id 805C237B419 for ; Thu, 13 Dec 2001 19:21:30 -0800 (PST) Received: from localhost (ryan@localhost) by catalyst.sasknow.net (8.11.6/8.11.6) with ESMTP id fBDMl3J94736; Thu, 13 Dec 2001 16:47:03 -0600 (CST) (envelope-from ryan@sasknow.com) X-Authentication-Warning: catalyst.sasknow.net: ryan owned process doing -bs Date: Thu, 13 Dec 2001 16:47:03 -0600 (CST) From: Ryan Thompson X-X-Sender: To: Nathan Mace Cc: Freebsd-questions Subject: Re: whats this?! In-Reply-To: <200112132105.QAA16995@uce55.uchaswv.edu> Message-ID: <20011213164200.N94620-100000@catalyst.sasknow.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Nathan Mace wrote to Freebsd-questions: > type 'cd //' and then do a pwd. > > what causes this? found it by accident I think it's a parsing [bug|feature] in bash. Slashes are normally condensed. At least, I have only noticed this peculiarity in bash. The standard shells (sh, [t]csh) do not appear to be affected. Probably it is because bash tries to use "friendly" pathnames (i.e., displays ~/username instead of /usr/home/username), thus circumventing nice things like realpath(3). In any case, when bash actually passes the pathname to any of the library path routines, the slashes WILL eventually get condensed, so this shouldn't affect operation at all. - Ryan -- Ryan Thompson Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message