getenv

Synopsis

(getenv variable)

Parameters

  • variable : UNIX environment variable name

Description

This procedure allow access to the UNIX evironment by supplying the desired variable name as a string.

Side Effects

Return Value

The value of the environment variable is returned as a string, if the variable is non-existent, #f is returned instead.

Example

> (getenv "HOME")
"/Users/john"
> (getenv "unknown")
#f
>