[Cuis-dev] get environment variable value

Vanessa Freudenberg vanessa at codefrau.net
Sun Dec 8 18:02:12 PST 2024


Use FFI to call getenv().

Vanessa

On Sun, Dec 8, 2024 at 5:22 PM Mark Volkmann via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> In Cuis Smalltalk how can I get the value of an environment variable that
> is defined in the process in which the image was started? I
> thought perhaps this would work, but it doesn't.
>
> process := Processor activeProcess.
> home :- process environmentAt: 'HOME' ifAbsent: [ '' ].
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20241208/c32d9366/attachment.htm>


More information about the Cuis-dev mailing list