Re: feature request: realpath

2017-06-06 Thread Alex Kost
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. --

Re: feature request: realpath

2017-06-06 Thread J. Kalbhenn
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.

Re: feature request: realpath

2017-06-05 Thread Alex Kost
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

Re: feature request: realpath

2017-06-04 Thread j kalbhenn
> 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

Re: feature request: realpath

2017-06-04 Thread Alex Kost
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

feature request: realpath

2017-06-03 Thread j kalbhenn
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