Daniel Moore <danielm@gropep.com.au> wrote:
> I just noticed that "cd ////some///other/red//planet" works. Is this
> because of the way the argument is tokenized? Or (and) is there some
> deeper, more useful reason?
////some///other/red//planet is a single word (for the same reason
that /some/other/red/planet is a single word: "/" is not a
metacharacter).
So bash calls chdir("////some///other/red//planet") at the C level.
The kernel doesn't care about redundant slashes, so this has the same
effect as chdir("/some/other/red/planet").
paul