mit-scheme-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to unset environment variable


From: Derek Rhodes
Subject: Re: How to unset environment variable
Date: Sun, 1 May 2022 08:45:11 -0400

Hi Sam, I dug around in the source and found this function:

(delete-environment-variable! "FOOBAR").  

It was located in os-primitives.scm:

https://git.savannah.gnu.org/cgit/mit-scheme.git/tree/src/runtime/os-primitives.scm?h=release-11.2

I couldn't find docs for it, but there is a comment in the implementation that might be worth reading. Hope that helps!

On Sun, May 1, 2022 at 4:52 AM Sam Lee <samlee746@yahoo.com> wrote:
I found that it is possible to unset an environment variable by setting
it to #f. For example, (set-environment-variable! "FOOBAR" #f) unsets
the environment variable named "FOOBAR". However, this doesn't seem to
be documented anywhere in the user manual or reference. Is this the way
to unset an environment variable in MIT Scheme?

I am running MIT Scheme 11.2.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]