From dmurdoch at pair.com  Mon Nov 24 14:19:59 2003
From: dmurdoch at pair.com (Duncan Murdoch)
Date: Mon Nov 24 14:18:47 2003
Subject: [Rd] Question about Unix file paths
In-Reply-To: <Pine.LNX.4.44.0311241316550.1114-100000@kleigh.nl>
References: <ils3svsfa9rt1725lb9mt42d0gc63pq8ba@4ax.com>
	<Pine.LNX.4.44.0311241316550.1114-100000@kleigh.nl>
Message-ID: <m614svsota0p4hd26k60rlsl3a0cf0brq7@4ax.com>

Thanks Peter and Peter.

On Mon, 24 Nov 2003 13:21:37 +0100 (CET), Peter Kleiweg wrote:

># 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

That one is not a problem in list.files:  it requires a non-empty
path.

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

I don't know anything about kpsetools.  Is it something that would
affect R users?

Duncan Murdoch


[Rd] Question about Unix file paths
Duncan Murdoch