unsetremove KornShell variable or function |
KornShell Built-in |
unset
name...
unset
-fv
name...
unset
with no options removes the value and
attributes of each KornShell variable name.
unset
cannot remove names which have been set read-only.
-f
removes the definition of each KornShell function name.
-v
removes the attribute and value of the variable name. (This is the default if no options are specified.)
0
Successful completion.
1
Failure due to an invalid command line option.
2
Failure due to an invalid command line argument.
unset
returns the number of specified
names which are invalid, not currently set, or read-only.
The given name cannot be deleted because it has been marked read-only.
unset
is a built-in command of the Bourne and Korn shells
on UNIX System V.