Re: whats this?!

[ Available lists | Index of freebsd-questions | Month of Dec 2001 | Week of 13 Dec 2001 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Ryan Thompson <ryan@sasknow.com>
Date
13 Dec 2001 19:21:33
Subject
Re: whats this?!
Message-ID
20011213164200.N94620-100000@catalyst.sasknow.net

In reply to
Referenced by

[ Hide this part ]
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



Elapsed time: 0.149 seconds