bug-bash
[Top][All Lists]
Advanced

[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 <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]