[Rd] Question about Unix file paths

Peter Kleiweg kleiweg at let.rug.nl
Mon Nov 24 13:21:37 MET 2003

# aldus Duncan Murdoch :

> In Unix-like systems, is it *always* safe to add a slash between a
> pathname and a filename?

Not if the path is empty:

    '' + '/' + 'file'  -> /file

is not the same as:

    '' + 'file'  -> file

Doubling of a slash has no effect (at least on Linux and HP-UX)
unless you are using kpsetools.

Peter Kleiweg

More information about the R-devel mailing list