MPE/iX Shell and Utilities Reference Manual, Vol 1

hash(1) MPE/iX Shell and Utilities hash(1)
NAME
hash — create a tracked alias
SYNOPSIS
hash [name ...]
DESCRIPTION
hash creates one or more tracked aliases. Each name on the command line becomes an alias
that is resolved to its full path name; thus the shell avoids searching the
PATH
directories for
the command whenever you invoke it. A tracked alias is assigned its full path name the first
time that the alias is used. It is re-assigned a path name the first time that it is used after the
variable
PATH
is changed or the shell command cd is used.
hash is a built-in alias defined with
alias hash=’alias -t’
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
1 Failure because of an invalid command line option.
Messages
Because this command is an alias for a utility built into the
MPE/iX Shell, see the sh(1) man
page for a complete list of error messages that you may receive when using it.
PORTABILITY
POSIX.2. x/OPEN
Portability Guide 4.0. All UNIX systems.
NOTE
This is an alias built into the shell.
SEE ALSO
alias(1), sh(1)
1-262 Commands and Utilities