MPE/iX Shell and Utilities Reference Manual, Vol 2

unset(1) MPE/iX Shell and Utilities unset(1)
NAME
unset — remove shell variable or function
SYNOPSIS
unset name...
unset –fv name...
DESCRIPTION
Calling unset with no options removes the value and attributes of each variable name.
unset cannot remove names which have been set read-only.
Options
unset accepts the following options:
–f removes the value and attributes of each function name.
–v is equivalent to calling unset with no options.
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 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.
Messages:
Message: name: readonly variable
Cause: The given name cannot be deleted because it has been marked read-only.
Action: Do not specify read-only variables as arguments to unset.
Message: Unknown option "–option"
Cause: You specified an option that is not valid for unset.
Action: Check the DESCRIPTION section for a list of valid unset options.
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0.
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 shell.
Commands and Utilities 1-639