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