environment

fun environment(key: String, value: String): Process.Builder(source)

Configure/overwrite an environment variable

By default, the new Process will inherit all environment variables from the current one (its parent process).


fun environment(block: MutableMap<String, String>.() -> Unit): Process.Builder(source)

Configure the process' environment via lambda

By default, the new Process will inherit all environment variables from the current one (its parent process).