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.
-fremoves the definition of each KornShell function name.
-vremoves the attribute and value of the variable name. (This is the default if no options are specified.)
0Successful completion.
1Failure due to an invalid command line option.
2Failure 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.