[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hello... the bash tokenizer
From: |
Paul Jarc |
Subject: |
Re: hello... the bash tokenizer |
Date: |
Tue, 29 Apr 2003 13:16:51 -0400 |
User-agent: |
Gnus/5.09002 (Oort Gnus v0.20) Emacs/21.3 (gnu/linux) |
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