bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Andrey Demykin
Subject: Why bash command "cd //" set path "//" ?
Date: Fri, 26 Aug 2011 14:38:21 +0400

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.demykin@nexenta.com
skype: andr0423



reply via email to

[Prev in Thread] Current Thread [Next in Thread]