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

MPW Command Reference


Unalias

Built-in

SYNTAX

Unalias [name]…

DESCRIPTION

The Unalias command removes any command alias definition associated with the command alias name. The scope of Unalias is limited to the current script; that is, command aliases in enclosing scripts are not affected. If you are writing a script that is to be completely portable across various user's configurations of MPW, you need to place the Unalias command at the beginning to make sure no unwanted substitutions occur.

WARNING
If you do not specify any command alias names, all command aliases are removed. •

INPUT

None

OUTPUT

None

STATUS

Unalias always returns a status code of 0 (no errors) unless the command is aborted (Command-Period). In this case, Unalias returns a status code of -9.

PARAMETERS

name

Specifies one or more command alias names. It is not an error if no definition exists for name.

OPTIONS

None

EXAMPLES

The following command line removes the File command alias, which is defined in the Startup file:

Unalias File

SEE ALSO

Alias

 
 


Last Updated July 2000