guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting env variable from Guile


From: Christian Mauduit
Subject: Re: setting env variable from Guile
Date: Fri, 29 Jul 2005 21:20:35 +0200
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050611)

Hi,

Aurelien Chanudet a écrit :
> Thank you guys for the tip.
> 
> 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=bar

and FOO won't be set in the "parent" shell. Type directly:

export FOO=bar

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.

-- 
Christian Mauduit <address@hidden>     __/\__ ___
                                        \~/ ~/(`_ \   ___
http://www.ufoot.org/                   /_o _\   \ \_/ _ \_
http://www.ufoot.org/gnupg.pub            \/      \___/ \__)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]