Home OS X
OS X Syntax

unsetenv

Unset an environment variable - the opposite of setenv.

SYNTAX
      unsetenv pattern	       

Removes all environment variables whose names match pattern.

`unsetenv *' thus removes all variables unless they are read-only; this is a bad idea.

It is not an error for nothing to be unsetenved.

"Look Dave, I can see you're really upset about this" - HAL

Related commands:

unset - Unset a variable
setenv - set an environment variable

Equivalent BASH command:

unset
- unset a variable



Back to the Top

Simon Sheppard
SS64.com