Re: Setting environment variables

"Scott L. Burson" <[email protected]> Sat, 29 Apr 2023 16:02:37 -0700
Newsgroups gmane.editors.j.devel
Message-ID <CAF5LJ4DFecj34xjoBd3YkzcCsv6tpx=OdEWbygk2sLa=7Bcnqw@mail.gmail.com>
--000000000000279de005fa81982a
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thanks!

On Sat, Apr 29, 2023 at 3:39=E2=80=AFPM Alan Ruttenberg <alanruttenberg@gma=
il.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 cours=
e.
>
> Alan
>
>
> On Sat, Apr 29, 2023 at 2:25=E2=80=AFAM Scott L. Burson <Scott@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 s=
o:
>> https://stackoverflow.com/questions/318239/how-do-i-set-environment-vari=
ables-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
>>
>>

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

<div dir=3D"ltr">Thanks! <br></div><br><div class=3D"gmail_quote"><div dir=
=3D"ltr" class=3D"gmail_attr">On Sat, Apr 29, 2023 at 3:39=E2=80=AFPM Alan =
Ruttenberg &lt;<a href=3D"mailto:[email protected]">alanruttenberg@g=
mail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D=
"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le=
ft:1ex"><div dir=3D"ltr"><div>Here&#39;s what I did: <a href=3D"https://git=
hub.com/alanruttenberg/lsw2/blob/owlapiv4/util/setenv.lisp" target=3D"_blan=
k">https://github.com/alanruttenberg/lsw2/blob/owlapiv4/util/setenv.lisp</a=
></div><div><br></div><div>You still can&#39;t set environment variables in=
 the parent process, of course.</div><div><br></div><div>Alan</div><div><br=
></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail=
_attr">On Sat, Apr 29, 2023 at 2:25=E2=80=AFAM Scott L. Burson &lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>=
&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px =
0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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 famil=
iar issue.=C2=A0 I tried (SETF (UIOP:GETENV &quot;foo&quot;) &quot;value&qu=
ot;) and got</div><div><br></div><div>Not (currently) implemented on ABCL: =
(SETF UIOP/OS:GETENV)</div><div><br></div><div>On investigation, I see that=
 the JVM doesn&#39;t normally support setting environment variables, but th=
ere are known ways to jimmy it into doing so: <a href=3D"https://stackoverf=
low.com/questions/318239/how-do-i-set-environment-variables-from-java" targ=
et=3D"_blank">https://stackoverflow.com/questions/318239/how-do-i-set-envir=
onment-variables-from-java</a></div><div><br></div><div>Would a PR to add s=
uch 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><di=
v>-- Scott</div><div><br></div></div>
</blockquote></div>
</blockquote></div>

--000000000000279de005fa81982a--