SYNOPSIS
unset name...
unset [
DESCRIPTION
Calling unset with no options removes the value and attributes of each KornShell variable name.
unset cannot remove names which have been set read-only.
Options
-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.)
DIAGNOSTICS
Possible exit status values are:
- 0
-
Successful completion.
- 1
-
Failure due to an invalid command line option.
- 2
-
Failure due to an invalid command line argument.
Otherwise, unset returns the number of specified names which are invalid, not currently set, or read-only.
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0. Windows 2000. Windows XP. Windows Server 2003. Windows Vista.
unset is a built-in command of the Bourne and Korn shells on UNIX System V.
NOTE
This is a special built-in command of the MKS KornShell.
AVAILABILITY
MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
MKS Toolkit 9.2 Documentation Build 16.