Skip to Content
gnux

-u, --unset

Remove variable NAME from the environment.

An option of envx.

Usage

envx -u NAME [-] [NAME=VALUE]... [COMMAND [ARG]...]
envx --unset=NAME [-] [NAME=VALUE]... [COMMAND [ARG]...]

Details

ShortLongValueDefaultMeaning
-u--unsetNAMEremove variable NAME from the environment

Examples

Drop variables for one command (-u may be repeated)

envx -u HOME -u USER gnux shell -c 'echox "[$HOME] [$USER]"'

Drop a variable and run in another directory

envx -u DEBUG -C build ./configure

Help in the terminal

gnux help envx --unset

On this page