Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2001 16:47:03 -0600 (CST)
From:      Ryan Thompson <ryan@sasknow.com>
To:        Nathan Mace <nmace85@yahoo.com>
Cc:        Freebsd-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: whats this?!
Message-ID:  <20011213164200.N94620-100000@catalyst.sasknow.net>
In-Reply-To: <200112132105.QAA16995@uce55.uchaswv.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ryan@sasknow.com>
  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011213164200.N94620-100000>