Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2005 21:19:52 +0100
From:      Andreas Kohn <andreas.kohn@gmx.net>
To:        freebsd-current@freebsd.org
Subject:   cd into // works?
Message-ID:  <1109103592.84939.11.camel@klamath.syndrom23.de>

index | next in thread | raw e-mail

[-- Attachment #1 --]
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. 
-- 

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQBCG5PoYucd7Ow1ygwRAh0aAJ9eiR5MdJaU/Q7obRdw4JU0Dpl77wCbBO3A
LHv01gjAY9QVVOBImu/NSLc=
=pnra
-----END PGP SIGNATURE-----
help

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