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>

next in thread | raw e-mail | index | archive | help

--=-cifIo4skXrLKXV3kKBmU
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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?=20

Regards,
Andreas

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

--=-cifIo4skXrLKXV3kKBmU
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

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

--=-cifIo4skXrLKXV3kKBmU--



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