chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] A couple of issues regarding normalize-pathname


From: Mario Domenech Goulart
Subject: Re: [Chicken-users] A couple of issues regarding normalize-pathname
Date: Wed, 20 Aug 2014 18:04:06 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hi,

On Wed, 20 Aug 2014 19:42:27 +0200 "Jörg F. Wittenberger" <address@hidden> 
wrote:

> Am 20.08.2014 16:04, schrieb Michele La Monaca:
>>
>> 2) I think it would be a good idea to strip any trailing slash, otherwise:
>>
>> (string=? (normalize-pathname "/tmp/") (normalize-pathname "/tmp")) -> #f
>
> What would be the result of:
>
> (normalize-pathname "/")
>
> A: "/" (special case: not stripped)
> B: ""
>
> Maybe it would better to *add* missing trailing slashed to
> directories.  Would also somewhat unify wrt. URL handling.

normalize-pathname doesn't really know about the "type" of filesystem
objects (regular file, directory etc.) represented by the given strings.
It only blindly operates on strings.

I think "tmp", "/tmp", "/tmp/" and "tmp/" are all normalized paths, so
normalize-pathname just return them as they are given.

Best wishes.
Mario
-- 
http://parenteses.org/mario



reply via email to

[Prev in Thread] Current Thread [Next in Thread]