-
- unset - unset values and attributes of variables and functions
-
- unset [ options ] name...
-
- For each name specified, unset unsets the variable, or function if -f is specified, from the current shell execution
environment. Readonly variables cannot be unset.
-
- -n
- If name refers to variable that is a reference, the variable name will be unset rather than the variable it
references. Otherwise, is is equivalent to -v.
- -f
- name refers to a function name and the shell will unset the function definition.
- -v
- name refers to a variable name and the shell will unset it and remove it from the environment. This is the default
behavior.
-
- 0
- All names were successfully unset.
- >0
- One or more name operands could not be unset or an error occurred.
-
- typeset(1)
-
- version
- unset (AT&T Research) 1999-07-07
- author
- David Korn <dgk@research.att.com>
- copyright
- Copyright © 1982-2010 AT&T Intellectual Property
- license
- http://www.opensource.org/licenses/cpl1.0.txt