Flux
Flux

Reputation: 10920

How do I access environment variables from MIT Scheme?

Suppose I set an environment variable in bash before starting MIT Scheme (e.g. export FOO=123). How can I get the value of the environment variable?

Upvotes: 2

Views: 361

Answers (1)

Dan D.
Dan D.

Reputation: 74645

(get-environment-variable "FOO")

The remarks on https://srfi.schemers.org/srfi-98/srfi-98.html state that MIT Scheme defines this function.

Upvotes: 2

Related Questions