cd into // works?

From: Andreas Kohn <andreas.kohn_at_gmx.net>
Date: Tue, 22 Feb 2005 21:19:52 +0100
Hi,

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?

[klamath] //>pwd
//
[klamath] //>echo $PWD
//
[klamath] //>cd //home//
[klamath] //home>pwd
//home

I checked with Linux, and there everything works as expected:
[catalina] ~>cd //
[catalina] />pwd
/

Is this expected behavior? 

Regards,
Andreas

[1] I always thought it was the shell, but I have the same shell (bash 
    3) on FreeBSD and Linux. 
-- 

Received on Tue Feb 22 2005 - 19:19:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:28 UTC