-i, --ignore-environment
Start with an empty environment.
An option of envx.
Usage
envx -i [-] [NAME=VALUE]... [COMMAND [ARG]...]
envx --ignore-environment [-] [NAME=VALUE]... [COMMAND [ARG]...]Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-i | --ignore-environment | none | start with an empty environment |
Examples
Run a command with nothing but the variables given
envx -i PATH=/usr/bin HOME=/tmp make testPrint an empty environment plus a single variable
envx -i LANG=C.UTF-8Print the environment NUL-separated, with the NULs made visible
envx -0 -i A=1 B=2 | catx -vHelp in the terminal
gnux help envx --ignore-environment