Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

MPW Command Reference


Unset

Built-in

SYNTAX

Unset [name…]

DESCRIPTION

The Unset command removes any variable definition associated with the variable name. The scope of Unset is limited to the current script; that is, variables in enclosing scripts are not affected.

WARNING
If you do not specify any variable names, Unset removes all variable definitions. This can have serious consequences. For example, the MPW Shell uses the {Commands} variable to locate utilities and applications and uses several other variables to set defaults. In addition, the assembler and compilers use variables to help locate include files. •

INPUT

None

OUTPUT

None

STATUS

Unset always returns a status code of 0.

PARAMETERS

name

Specifies one or more variable names. Note that it is not an error if no definition exists for name. See the warning under "Description."

OPTIONS

None

EXAMPLES

The following command line removes the variable definition for {CaseSensitive}. This turns off case-sensitive searching for editing commands.

Unset CaseSensitive

SEE ALSO

Export

Set

Unexport

 
 


Last Updated July 2000