environment

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

Set/overwrite an environment variable

By default, the new Process will inherit all environment variables from the current one.


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

Modify the environment via lambda

By default, the new Process will inherit all environment variables from the current one.