[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] How to access environment variables ?
From: |
Krishna |
Subject: |
Re: [Help-smalltalk] How to access environment variables ? |
Date: |
Tue, 10 Feb 2009 20:20:34 +0530 |
On Tue, Feb 10, 2009 at 8:11 PM, Krishna <address@hidden> wrote:
> On Tue, Feb 10, 2009 at 8:03 PM, Paolo Bonzini <address@hidden> wrote:
>> Krishna wrote:
>>> On Tue, Feb 10, 2009 at 7:41 PM, Paolo Bonzini <address@hidden> wrote:
>>>>> There are extra shell variables showing up like PATH, BASH, TERM, etc.
>>>>> which do not show up in a CGI environment using any other language that
>>>>> I've used to write a similar CGI program (Perl, PHP, Lisp, Scheme, C,
>>>>> Tcl). All of them print out the same variables as the output of the
>>>>> Perl script. What we seem to be doing in Smalltalk is forking/execing
>>>>> a shell and and then getting the environment variables so that we end up
>>>>> with variables from a hybrid environment of CGI and shell.
>>>
>>> why not call getenv(3) using the C interface?
>>
>> He wants *all* the variables, not just one.
>>
> ha! ok. is it possible to build a custom gst with int main(int argc,
> char** argv, char** envp) and slurp the environment from there?
>
unistd.h defines char** environ. exporting that to smalltalk should
solve the problem right?
--
I love deadlines. I like the whooshing sound
they make as they fly by.
-- Douglas Adams
- Re: [Help-smalltalk] How to access environment variables ?, Mehul N. Sanghvi, 2009/02/09
- Re: [Help-smalltalk] How to access environment variables ?, Stephen, 2009/02/10
- Re: [Help-smalltalk] How to access environment variables ?, Mehul N. Sanghvi, 2009/02/10
- Re: [Help-smalltalk] How to access environment variables ?, Paolo Bonzini, 2009/02/10
- Re: [Help-smalltalk] How to access environment variables ?, Krishna, 2009/02/10
- Re: [Help-smalltalk] How to access environment variables ?, Paolo Bonzini, 2009/02/10
- Re: [Help-smalltalk] How to access environment variables ?, Krishna, 2009/02/10
- Re: [Help-smalltalk] How to access environment variables ?,
Krishna <=
- Re: [Help-smalltalk] How to access environment variables ?, Mehul N. Sanghvi, 2009/02/10
- Re: [Help-smalltalk] How to access environment variables ?, Paolo Bonzini, 2009/02/10
- Re: [Help-smalltalk] How to access environment variables ?, Mehul N. Sanghvi, 2009/02/10