From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?reza?= Newsgroups: gmane.lisp.guile.user Subject: Absolute path of source file Date: Mon, 23 Sep 2024 15:35:03 +0000 Message-ID: <010201921f859ddf-59f911d6-5c02-470c-a8ef-c8d43638fd8c-000000@eu-west-1.amazonses.com> References: <877cb21j0d.fsf@housseini.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16797"; mail-complaints-to="usenet@ciao.gmane.io" To: =?UTF-8?Q?guile-user=40gnu=2Eorg?= Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Sep 23 17:35:41 2024 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ssl6D-0004CJ-KB for guile-user@m.gmane-mx.org; Mon, 23 Sep 2024 17:35:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssl5j-0008EO-7J; Mon, 23 Sep 2024 11:35:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <010201921f859ddf-59f911d6-5c02-470c-a8ef-c8d43638fd8c-000000@mail.housseini.me>) id 1ssl5h-0008DS-3J for guile-user@gnu.org; Mon, 23 Sep 2024 11:35:09 -0400 Original-Received: from a2-63.smtp-out.eu-west-1.amazonses.com ([54.240.2.63]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from <010201921f859ddf-59f911d6-5c02-470c-a8ef-c8d43638fd8c-000000@mail.housseini.me>) id 1ssl5e-0003S8-V0 for guile-user@gnu.org; Mon, 23 Sep 2024 11:35:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=tsl3ypnlx3orlf3fv2rkjjc5b3u22mve; d=housseini.me; t=1727105703; h=Subject:From:To:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:References:Message-Id; bh=ECxutgGZmIkDNtxldtCnKBZay0xjmtzi54ygl65lyBQ=; b=E1IpmZ8Vk4Tc6L6RJZCdp5kJ582l1EtIUXZEgdqy5PP72VWU0bohscxL5vf38Mp9 La7YcWMoj3HLgPZa1zD4q+55H5GTs0pqm7AWnmcOm4Yo+r8rYROTCbeEHCtT2nc9jMs XQv1H/Sm457GrVWv7ch2Oh6pTR6hYqyfm3hAwUxI= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=uku4taia5b5tsbglxyj6zym32efj7xqv; d=amazonses.com; t=1727105703; h=Subject:From:To:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:References:Message-Id:Feedback-ID; bh=ECxutgGZmIkDNtxldtCnKBZay0xjmtzi54ygl65lyBQ=; b=gYGRHtv76zGPFFiJks8XB5k0dpQg6DZn5VtOGYRts6L5RFo8AQCVowfCoiLIyP+Y XuLjt+MpnHoT4m+eUkBX1+GFqez9LyfRKYUEdufRyo0+mC8A7JN5Ojan7nlhMLNs4Vs Kq8czECdfowkrUKXJSSlva9r3aTNfBNJOTRHywB0= X-Mailer: Amazon WorkMail Thread-Index: AQHbDc4nItU08h5DQjiTTZTPlJTeRw== Thread-Topic: Absolute path of source file X-Wm-Sent-Timestamp: 1727105702 Feedback-ID: ::1.eu-west-1.b24dn6frgCi6dh20skzbuMRr7UL8M6Soir/3ogtEjHQ=:AmazonSES X-SES-Outgoing: 2024.09.23-54.240.2.63 Received-SPF: pass client-ip=54.240.2.63; envelope-from=010201921f859ddf-59f911d6-5c02-470c-a8ef-c8d43638fd8c-000000@mail.housseini.me; helo=a2-63.smtp-out.eu-west-1.amazonses.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19832 Archived-At: Hi List How can I get the absolute path to a source file from itself. In bash this would look like something along the lines realpath $(dirname $0) but I could not figure out how to achieve this in guile. Thanks for any hints! Cheers, Reza