From adbcecb456bc74f7a58dfae3daef0c7a45cd8d32 Mon Sep 17 00:00:00 2001 From: Mark Griffiths Date: Wed, 3 Sep 2014 15:10:53 +0100 Subject: Rebase documentation changes --- doc_src/command.txt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'doc_src/command.txt') diff --git a/doc_src/command.txt b/doc_src/command.txt index f0b79e8d..4f9087d6 100644 --- a/doc_src/command.txt +++ b/doc_src/command.txt @@ -1,22 +1,24 @@ \section command command - run a program \subsection command-synopsis Synopsis -command [OPTIONS] COMMANDNAME [ARGS...] +\fish{synopsis} +command [OPTIONS] COMMANDNAME [ARGS...] +\endfish \subsection command-description Description `command` forces the shell to execute the program `COMMANDNAME` and ignore any functions or builtins with the same name. The following options are available: -- \c -h or \c --help prints help and then exits. -- \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 $PATH. -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. +- `-s` or `--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 `$PATH`. -For basic compatibility with POSIX command, the \c -v flag is recognized as an alias for -s. +With the `-s` option, `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 `command`, the `-v` flag is recognized as an alias for `-s`. \subsection command-example Examples -command ls causes fish to execute the \c ls program, even if an 'ls' function exists. +`command ls` causes fish to execute the `ls` program, even if an `ls` function exists. -command -s ls returns the path to the \c ls program. +`command -s ls` returns the path to the `ls` program. -- cgit v1.2.3