Setting environment variables

"Scott L. Burson" <[email protected]> Fri, 28 Apr 2023 23:23:50 -0700
Newsgroups gmane.editors.j.devel
Message-ID <CAF5LJ4D7D39zGREpzaDOfMvk0Ckz7Hmk+fq_g+JUCdyw5QUnJw@mail.gmail.com>
--0000000000002b49d505fa73a411
Content-Type: text/plain; charset="UTF-8"

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

--0000000000002b49d505fa73a411
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>I&#39;ve been away from =
ABCL for some time, so I ask your indulgence in case I&#39;m revisiting a f=
amiliar issue.=C2=A0 I tried (SETF (UIOP:GETENV &quot;foo&quot;) &quot;valu=
e&quot;) and got</div><div><br></div><div>Not (currently) implemented on AB=
CL: (SETF UIOP/OS:GETENV)</div><div><br></div><div>On investigation, I see =
that the JVM doesn&#39;t normally support setting environment variables, bu=
t there are known ways to jimmy it into doing so: <a href=3D"https://stacko=
verflow.com/questions/318239/how-do-i-set-environment-variables-from-java" =
target=3D"_blank">https://stackoverflow.com/questions/318239/how-do-i-set-e=
nvironment-variables-from-java</a></div><div><br></div><div>Would a PR to a=
dd such a hack to ABCL be welcome, or should I just make it a local mod?=C2=
=A0 Or is there another, recommended way of doing this?</div><div><br></div=
><div>-- Scott</div><div><br></div></div>

--0000000000002b49d505fa73a411--