std.os

← Stdlib Reference · Language Guide · Detailed reference

Operating-system primitives.

(import std.os)
SymbolDescription
(os:getenv name [default])Read an environment variable.
(os:setenv! name value)Set an environment variable for the process.
(os:unsetenv! name)Remove an environment variable.
(os:environment-variables)Alist of all environment variables.
(os:command-line-arguments)List of arguments passed after the script.
(os:exit [code])Exit the process with code (default 0).
(os:current-directory)Working directory as a string.
(os:change-directory! path)Change the working directory.

Source: stdlib/std/os.eta