[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to unset environment variable
From: |
Sam Lee |
Subject: |
Re: How to unset environment variable |
Date: |
Sun, 1 May 2022 13:34:40 +0000 |
On 2022-05-01 08:45:11 -0400, Derek Rhodes wrote:
> 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
Thank you.
What is the difference between (set-environment-variable! "FOOBAR" #f)
and (delete-environment-variable! "FOOBAR") ? The source code looks like
they do different things. I would assume that "delete-environment-variable!"
is the proper method for deleting an environment variable.