getenv(var, @optional default)
Return the value of the environment variable var
of the current process. If no such environment variable is found and
default
is provided, return default
, otherwise raise an "Unbound OS environment variable" error.
getenv("logs_folder", "./")
// ./
setenv("logs_folder", "/logs/")
getenv("logs_folder", "./")
// /logs/
setenv("logs_folder")
getenv("logs_folder", "./")
// ./