cd into // works?

Andreas Kohn andreas.kohn at gmx.net
Tue Feb 22 20:19:56 GMT 2005


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. 
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20050222/eb577653/attachment.bin


More information about the freebsd-current mailing list