J. Kalbhenn (2017-06-06 13:33 +) wrote:
>> Oh, I see. There is 'canonicalize-path' that can handle ".." and "."
>
> but not in guile, or is it? i have not found it in the manual. maybe it
> is only in racket.
It is in Guile as you can check in the guile REPL. It's just not
documented.
--
Oh, I see. There is 'canonicalize-path' that can handle ".." and "."
but not in guile, or is it? i have not found it in the manual. maybe it
is only in racket.
j kalbhenn (2017-06-04 21:36 +) wrote:
>> Guile provides "readlink". Isn't it the thing you need?
>
> no, i am afraid not. readlink returns the target of a symbolic
> link. realpath resolves all directory references like ".." and "." and
> all symbolic links in a path and returns a path that
> Guile provides "readlink". Isn't it the thing you need?
no, i am afraid not. readlink returns the target of a symbolic link. realpath
resolves all directory references like ".." and "." and all symbolic links in a
path and returns a path that does not include those things.
i have now impleme
j kalbhenn (2017-06-03 17:20 +) wrote:
> guile does not offer "realpath", which is part of the posix standard as
> far as i can tell. http://pubs.opengroup.org/onlinepubs/9699919799/
Guile provides "readlink". Isn't it the thing you need?
--
Alex
guile does not offer "realpath", which is part of the posix standard as far as
i can tell. http://pubs.opengroup.org/onlinepubs/9699919799/
i think this would be useful to have and it does not seem trivial to
re-implement in scheme.
one of my use cases would be finding the first matching load p