2005-09-20 13:31:55 +00:00
\section command command - run a program
\subsection command-synopsis Synopsis
2014-07-10 01:21:06 +00:00
<tt>command [OPTIONS] COMMANDNAME [ARGS...]</tt>
2005-09-20 13:31:55 +00:00
\subsection command-description Description
Help cleanup
Large list of changes, including formatting and typos for most commands.
More substantive changes have been made to alias, bind, block, break,
builtin, case, cd, commandline, count, else, emit, fish_config, funced,
function, functions, history, math, mimedb, nextd, not, popd, prevd,
pushd, pwd, random, read, set, set_color, switch, test, trap, type,
ulimit, umask, and while.
2013-05-12 07:56:01 +00:00
\c command forces the shell to execute the program \c COMMANDNAME and ignore any functions or builtins with the same name.
2005-09-20 13:31:55 +00:00
2014-07-10 01:21:06 +00:00
The following options are available:
- \c -h or \c --help prints help and then exits.
2014-07-11 02:16:32 +00:00
- \c -s or \c --search returns the name of the disk file that would be executed, or nothing if no file with the specified name could be found in the <tt>$PATH</tt>.
2014-07-10 01:21:06 +00:00
2014-07-11 02:16:32 +00:00
With the \c -s option, \c command treats every argument as a separate command to look up and sets the exit status to 0 if any of the specified commands were found, or 1 if no commands could be found.
For basic compatibility with POSIX <tt>command</tt>, the \c -v flag is recognized as an alias for <tt>-s</tt>.
2014-07-10 01:21:06 +00:00
\subsection command-example Examples
2005-09-20 13:31:55 +00:00
Help cleanup
Large list of changes, including formatting and typos for most commands.
More substantive changes have been made to alias, bind, block, break,
builtin, case, cd, commandline, count, else, emit, fish_config, funced,
function, functions, history, math, mimedb, nextd, not, popd, prevd,
pushd, pwd, random, read, set, set_color, switch, test, trap, type,
ulimit, umask, and while.
2013-05-12 07:56:01 +00:00
<tt>command ls</tt> causes fish to execute the \c ls program, even if an 'ls' function exists.
2014-07-10 01:21:06 +00:00
2014-07-11 02:16:32 +00:00
<tt>command -s ls</tt> returns the path to the \c ls program.