From: j kalbhenn <jkal@posteo.eu>
To: Alex Kost <alezost@gmail.com>
Cc: guile-devel@gnu.org
Subject: Re: feature request: realpath
Date: Sun, 4 Jun 2017 21:36:53 +0000 [thread overview]
Message-ID: <20170604213653.GA13541@sph-desktop.fritz.box> (raw)
In-Reply-To: <87k24r5xqm.fsf@gmail.com>
> 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 implemented my own version of realpath in scheme (could have used the ffi probably), but since it is a standard lib function in C and guile offers many other posix functions, i thought it would be well suited for inclusion.
next prev parent reply other threads:[~2017-06-04 21:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-03 17:20 feature request: realpath j kalbhenn
2017-06-04 20:00 ` Alex Kost
2017-06-04 21:36 ` j kalbhenn [this message]
2017-06-05 19:47 ` Alex Kost
2017-06-06 13:33 ` J. Kalbhenn
2017-06-06 17:48 ` Alex Kost
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170604213653.GA13541@sph-desktop.fritz.box \
--to=jkal@posteo.eu \
--cc=alezost@gmail.com \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).