Mail Archives: djgpp/1997/02/25/04:38:45
On Mon, 24 Feb 1997, Erik Max Francis wrote:
> > about such filenames (the current code in libc collapses multiple
> > slashes into a single slash).
>
> As do most Unix shells:
>
> max AT newton:~% ls Tmp
> array array.cc array.o
> max AT newton:~% ls Tmp//array.cc
> Tmp//array.cc
^^
This tends to say the opposite: `ls' got the double slashes verbatim, but
they didn't confuse it. This is compatible with what I know: the slashes
are collapsed inside Unix system calls, not by the shell. Which is
correct, I think: the shell has no business knowing which arguments are
filenames and which aren't. Otherwise it would collapse, e.g., Sed
commands like s/foobar//.
- Raw text -