From kleiweg at let.rug.nl  Mon Nov 24 13:21:37 2003
From: kleiweg at let.rug.nl (Peter Kleiweg)
Date: Mon Nov 24 13:20:22 2003
Subject: [Rd] Question about Unix file paths
In-Reply-To: <ils3svsfa9rt1725lb9mt42d0gc63pq8ba@4ax.com>
Message-ID: <Pine.LNX.4.44.0311241316550.1114-100000@kleigh.nl>

# 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


[Rd] Question about Unix file paths
Peter Kleiweg