Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] // ??

> All still aliased to /
> Why it has this useless feature I have no idea.

As some have correctly inferred, this is not a distro specific thing, it's the
behaviour of the kernel.

Useless? Hardly. For example in Makefiles you can do things like

PREFIX=	/test/		# to force directory interpretation
LIBSUF=	/lib


and it will work correctly whether or not PREFIX is defined. When making
pathname strings, it's nice not to have to check that you have exactly one / as
a separator between components. Besides it's a consistent interpretation. A long
time ago in Unix, the empty string also stood for the current directory, so //
would mean /./

This mail sent via NLC WebMail: http://www.nlc.net.au/