Setting environment variables

Scott L. Burson Scott at sympoiesis.com
Sat Apr 29 23:02:37 UTC 2023


Thanks!

On Sat, Apr 29, 2023 at 3:39 PM Alan Ruttenberg <alanruttenberg at gmail.com>
wrote:

> Here's what I did:
> https://github.com/alanruttenberg/lsw2/blob/owlapiv4/util/setenv.lisp
>
> You still can't set environment variables in the parent process, of course.
>
> Alan
>
>
> On Sat, Apr 29, 2023 at 2:25 AM Scott L. Burson <Scott at sympoiesis.com>
> wrote:
>
>> Hi,
>>
>> I've been away from ABCL for some time, so I ask your indulgence in case
>> I'm revisiting a familiar issue.  I tried (SETF (UIOP:GETENV "foo")
>> "value") and got
>>
>> Not (currently) implemented on ABCL: (SETF UIOP/OS:GETENV)
>>
>> On investigation, I see that the JVM doesn't normally support setting
>> environment variables, but there are known ways to jimmy it into doing so:
>> https://stackoverflow.com/questions/318239/how-do-i-set-environment-variables-from-java
>>
>> Would a PR to add such a hack to ABCL be welcome, or should I just make
>> it a local mod?  Or is there another, recommended way of doing this?
>>
>> -- Scott
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/armedbear-devel/attachments/20230429/ebfd8606/attachment.html>


More information about the armedbear-devel mailing list