Register a domain and help support LQ
Go Back > Blogs > __raHulk
User Name


Rate this Entry

Strange Behaviour.

Posted 05-07-2010 at 05:55 AM by __raHulk
Tags strange

Hi Friends,

Recently I came upon a new discovery in bash shell that commands which expect input <paths> as parameters like ls, rm works even if you type multiple front slashes
rm /foo/bar/file.txt
works even if we type it as
rm /foo//bar/file.txt
or even
ls /foo/////bar///file or to my surprise
even ///foo/bar/file.txt works. Its a strange behaviour to me as I wonder why it happened. Could anyone explain it more deeply??

Or if you too come across some strange things then do share it here as everyone would love to know such things ...
Posted in Uncategorized
Views 644 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 02:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration