[Top][All Lists]
[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.
-------------------------------------------------------------------
address@hidden:/$ cd /
cd /
address@hidden:/$ cd //
cd //
address@hidden://$ pwd
pwd
//
address@hidden://$ cd /.//.
cd /.//.
address@hidden:/$ cd ..//
cd ..//
address@hidden:/$
address@hidden:/$ 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.
address@hidden:/$
-------------------------------------------------------------------
--
Andrey Demykin
QA Automated Test Engineer
email: address@hidden
skype: andr0423
- Why bash command "cd //" set path "//" ?,
Andrey Demykin <=