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 <samlee...@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