From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christian Mauduit Newsgroups: gmane.lisp.guile.user Subject: Re: setting env variable from Guile Date: Fri, 29 Jul 2005 21:20:35 +0200 Message-ID: <42EA8183.4030706@ufoot.org> References: <45e3b2820507280855788f321@mail.gmail.com> <20050729142904.GA3862@igbt.sel.eesc.usp.br> <45e3b282050729083211575301@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1122665354 16992 80.91.229.2 (29 Jul 2005 19:29:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2005 19:29:14 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jul 29 21:29:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DyaWg-0006p6-Hm for guile-user@m.gmane.org; Fri, 29 Jul 2005 21:28:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DyaZ8-0007AF-Mu for guile-user@m.gmane.org; Fri, 29 Jul 2005 15:30:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DyaYo-000787-CG for guile-user@gnu.org; Fri, 29 Jul 2005 15:30:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DyaYh-000751-St for guile-user@gnu.org; Fri, 29 Jul 2005 15:30:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DyaYh-00072A-HN for guile-user@gnu.org; Fri, 29 Jul 2005 15:30:15 -0400 Original-Received: from [213.228.0.176] (helo=postfix4-2.free.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DyaXm-0002oF-0R for guile-user@gnu.org; Fri, 29 Jul 2005 15:29:18 -0400 Original-Received: from moulin (arl95-1-82-232-241-64.fbx.proxad.net [82.232.241.64]) by postfix4-2.free.fr (Postfix) with ESMTP id 4ACB23233F3; Fri, 29 Jul 2005 21:17:24 +0200 (CEST) Original-Received: from guenegaud.streets ([192.168.0.4]) by moulin with esmtp (Exim 4.50) id 1DyaMF-0005uZ-JB; Fri, 29 Jul 2005 21:17:23 +0200 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050611) X-Accept-Language: fr, en Original-To: Aurelien Chanudet In-Reply-To: <45e3b282050729083211575301@mail.gmail.com> X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:4662 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:4662 Hi, Aurelien Chanudet a =E9crit : > Thank you guys for the tip. >=20 > Unfortunately, the environnement variable set in this way doesn't > appear to be visible from the shell guile was launched from. As a > result, the environnement variable does not appear to be visible to > the dynamic link editor. AFAIK this is a UNIX limitation, using setenv within a program will only change environnement variables for *this* program. Try to execute the script shell: #!/bin/bash export FOO=3Dbar and FOO won't be set in the "parent" shell. Type directly: export FOO=3Dbar and it will be set. Point is the "export" command is interpreted by this parent shell, so it has means to set in within this shell. No idea how to do this with Guile, except setting your environnement variable from Guile and then launch your program _from_ Guile. The way bash does 8-) Hope this will help. Christian. --=20 Christian Mauduit __/\__ ___ \~/ ~/(`_ \ ___ http://www.ufoot.org/ /_o _\ \ \_/ _ \_ http://www.ufoot.org/gnupg.pub \/ \___/ \__) _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user