From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Kost Newsgroups: gmane.lisp.guile.devel Subject: Re: feature request: realpath Date: Mon, 05 Jun 2017 22:47:02 +0300 Message-ID: <87poeikyix.fsf@gmail.com> References: <20170603172015.GA18219@sph-desktop.fritz.box> <87k24r5xqm.fsf@gmail.com> <20170604213653.GA13541@sph-desktop.fritz.box> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1496692047 3979 195.159.176.226 (5 Jun 2017 19:47:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 5 Jun 2017 19:47:27 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: guile-devel@gnu.org To: j kalbhenn Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jun 05 21:47:14 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 1dHxy5-0000L9-TI for guile-devel@m.gmane.org; Mon, 05 Jun 2017 21:47:14 +0200 Original-Received: from localhost ([::1]:34920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHxyA-0001O8-MV for guile-devel@m.gmane.org; Mon, 05 Jun 2017 15:47:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHxy0-0001HX-Sz for guile-devel@gnu.org; Mon, 05 Jun 2017 15:47:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHxxx-00078K-Fi for guile-devel@gnu.org; Mon, 05 Jun 2017 15:47:08 -0400 Original-Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:33694) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHxxx-00076g-8w for guile-devel@gnu.org; Mon, 05 Jun 2017 15:47:05 -0400 Original-Received: by mail-lf0-x230.google.com with SMTP id a136so62015245lfa.0 for ; Mon, 05 Jun 2017 12:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=jDZ7hxm1rjnf6hcsDkxFHI59X2wkR9d757kSsA3Oqps=; b=T0U2ek412XQdPTGb09woSIYxmPvUTvPeyx/eju0ME3FvY+8nw7kVZTB6ZGeDoCG39k EAUuPC+17kpgKdqhWeKzkpK1tzo/CaH7jIJJA+jEmffAEdFEHPmIXJXPaEx5Wufti3IK 6VavzO49GzgNNSPrS7un8jyYH6wYCGtp8NEEFqWoM3BuwVOIhwR1NbOn0uqkRuaCX1+T LwLZ0+xHQFlkubwQKTnD16FslibXmOqIfuLvIQ7F/JSDPSl7qanVfCN9Ifwmw1OhJvwO ARUVWzlJthNjRYH5jPawD7kojce/QYQQfdTeSqzZ0nRUoX45DqrA32FUou5VK5cLQHsn X+hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=jDZ7hxm1rjnf6hcsDkxFHI59X2wkR9d757kSsA3Oqps=; b=Mp3JWzh1q7L99uJQxRcMLU4QFOYp9s6biIWECE5HY8K86Et+K0QmasQ/Iyk7qCUb9h cQ92s18E3rFdq0iA/fAV9hoMFhsu3bxLxoulnF871FRnELKkDR8oUKjNWeFllr9io3aN HwOXAyqoaVaxnsKpsfvN3/0j7+zPJarlNcO4iTJ3otE3yUbw5m/QKvdXp2mkW3ftfb8/ wjiL1ZEThxlZbf1kHfEQ7ZWa0+jTjGeuh38wYNlFJbIrH/WaOJQz6hNcGeYIThAbKbgf OYjcq5IklF4DICy691XCOrjpYMnCsAHKarUuUGdFBiEKJNRUUPA9713OJ56w2YpsXrYz DATQ== X-Gm-Message-State: AODbwcAh0/deyuOKsxka7NNi0r8g0KndZsK3WohH4LuvBLoDkSn8Hz5E ilYyIU15uynJsXgV X-Received: by 10.46.7.67 with SMTP id i3mr6524012ljd.88.1496692022045; Mon, 05 Jun 2017 12:47:02 -0700 (PDT) Original-Received: from leviafan ([217.107.194.137]) by smtp.gmail.com with ESMTPSA id 90sm1612098lfs.9.2017.06.05.12.47.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Jun 2017 12:47:01 -0700 (PDT) In-Reply-To: <20170604213653.GA13541@sph-desktop.fritz.box> (j. kalbhenn's message of "Sun, 4 Jun 2017 21:36:53 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::230 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:19191 Archived-At: j kalbhenn (2017-06-04 21:36 +0000) 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 does not include > those things. Oh, I see. There is 'canonicalize-path' that can handle ".." and "." > 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. Yeah, I agree, I also expected to see 'realpath' in Guile :-) -- Alex