getenv

fun getenv(name: String): String?

Return the value of an item in the running environment, or null if the name is not found.

Return

value of that variable, if any

Parameters

name

name of the environment variable


fun getenv(name: String, default: String): String

Return the value of an item in the running environment, or a default value if not found.

Return

value of that variable, if any

Parameters

name

name of the environment variable

default

default value to return if no environment variable is found