- command - execute a simple command
- command [ options ] [command [arg ...]]
- Without -v or -V, command executes command with arguments given by arg, suppressing the shell function
lookup that normally occurs. In addition, if command is a special built-in command, then the special properties are removed so that failures
will not cause the script that executes it to terminate.
- With the -v or -V options, command is equivalent to the whence(1)
- Causes a default path to be searched rather than the one defined by the value of PATH.
- Equivalent to whence command [arg ...].
- If command fails because there are too many args, it will be invoked multiple times with a subset of the arguments
on each invocation. Arguments that occur prior to the first word that expand to multiple arguments and arguments that occur after the last word
that expands to multiple arguments will be passed on each invocation. The exit status will be the maximum invocation exit status.
- Equivalent to whence -v command [arg ...].
- If command is invoked, the exit status of command will be that of command. Otherwise, it will be one of the following:
- command completed successfully.
- -v or -V has been specified and an error occurred.
- command was found but could not be invoked.
- command could not be found.
- whence(1), getconf(1)
- command (AT&T Research) 2003-08-01
- David Korn <firstname.lastname@example.org>
- Copyright © 1982-2010 AT&T Intellectual Property