Why bash command "cd //" set path "//" ?

double slashes only in first position 

I found this in all version of the bash.
Excuse me , if it is not a bug.
Possibly it is a feature.

I noticed it by accident.

-------------------------------------------------------------------
andrus@and-lnv:/$ cd /
cd /
andrus@and-lnv:/$ cd //
cd //
andrus@and-lnv://$ pwd
pwd
//
andrus@and-lnv://$ cd /.//.
cd /.//.
andrus@and-lnv:/$ cd ..//
cd ..//
andrus@and-lnv:/$
andrus@and-lnv:/$ bash --version
bash --version
GNU bash, version 4.2.8(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
andrus@and-lnv:/$
-------------------------------------------------------------------



-- 
Andrey Demykin
QA Automated Test Engineer
email: andrey.demy...@nexenta.com
skype: andr0423

Reply via email to