From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: j kalbhenn Newsgroups: gmane.lisp.guile.devel Subject: Re: feature request: realpath Date: Sun, 4 Jun 2017 21:36:53 +0000 Message-ID: <20170604213653.GA13541@sph-desktop.fritz.box> References: <20170603172015.GA18219@sph-desktop.fritz.box> <87k24r5xqm.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1496612235 13161 195.159.176.226 (4 Jun 2017 21:37:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Jun 2017 21:37:15 +0000 (UTC) User-Agent: Mutt/1.8.3 (2017-05-23) Cc: guile-devel@gnu.org To: Alex Kost Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jun 04 23:37:11 2017 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHdCw-00035w-2R for guile-devel@m.gmane.org; Sun, 04 Jun 2017 23:37:10 +0200 Original-Received: from localhost ([::1]:58790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHdD1-00087n-Fc for guile-devel@m.gmane.org; Sun, 04 Jun 2017 17:37:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHdCu-00087g-Lh for guile-devel@gnu.org; Sun, 04 Jun 2017 17:37:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHdCr-0005Ib-Jm for guile-devel@gnu.org; Sun, 04 Jun 2017 17:37:08 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:55939) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dHdCr-0005H8-Cx for guile-devel@gnu.org; Sun, 04 Jun 2017 17:37:05 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id D4AA420A10 for ; Sun, 4 Jun 2017 23:36:56 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3wgrr65d7JzysV; Sun, 4 Jun 2017 23:36:54 +0200 (CEST) Content-Disposition: inline In-Reply-To: <87k24r5xqm.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.67.36.66 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19189 Archived-At: > 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.