LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

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
eg.
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??...
Member
Posted in Uncategorized
Views 1062 Comments 0 __raHulk is offline

  



All times are GMT -5. The time now is 12:06 PM.

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