Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

command(1) OSS Shell and Utilities Reference Manual
NAME
command - Treats command arguments as a simple command
SYNOPSIS
command [-p] command_name [argument ...]
The command command causes the shell to treat the arguments to command as a simple
command and suppresses the default shell function lookup.
FLAGS
-p Performs the command search using a default value for the path that is guaranteed to
nd all of the standard utilities.
DESCRIPTION
The command command allows you to run the following commands:
User-dened commands whose names correspond to shell built-in commands.
System commands whose names correspond to shell built-in commands.
The command_name argument species the name of a utility. The one or more optional argu-
ments to command_name specify strings treated as arguments to the specied utility.
EXAMPLES
To ensure execution of the simple command pwd instead of the pwd shell built-in command,
enter:
command -p pwd
The preceding command displays the full pathname of the current directory and does not per-
petuate a display of the current directory location created by links, as the shell built-in command
might do.
EXIT VALUES
127 An error occurred in the command command, or the utility specied by the
command_name argument could not be invoked.
If no error occurs, the exit status of command is that of the command invoked by the arguments
to command.
264 Hewlett-Packard Company 527188-003