process.env_clear
process.env_clear
Function
Clear inherited environment variables before starting the child process.
Syntax
process(program).env_clear()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| Process | Returns the new process builder. |
Example
cmd = process('cmd').env_clear() result = type(cmd) // Output: Process print result
Notes
- Subsequent variables set through env/envs will still be written to the child process environment.