[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 14:13:27 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Hi Michele,
On Wed, 20 Aug 2014 16:04:38 +0200 Michele La Monaca <address@hidden> wrote:
> 1) Is this supposed to be the correct output?
>
> (normalize-pathname "/") -> "/."
I also run into this issue. That case is specially handled in
normalize-pathname. I contacted Felix and he said that special case
could be removed, so we'd get (normalize-pathname "/") -> "/".
I haven't done this yet because the Windows stuff has scared me.
> 2) I think it would be a good idea to strip any trailing slash, otherwise:
>
> (string=? (normalize-pathname "/tmp/") (normalize-pathname "/tmp")) -> #f
I don't know how normalize-pathname should behave in that case.
Best wishes.
Mario
--
http://parenteses.org/mario