diff options
author | Kevin Ballard <kevin@sb.org> | 2014-07-10 19:16:32 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-07-13 19:11:29 -0700 |
commit | 72e8489d50d749c86d5b57609bb0c4d83a03b41a (patch) | |
tree | d3688652098c5219a51a1b9a8610ebddaaa3bcc7 /doc_src/command.txt | |
parent | cfa13ed84c32ce3330041a54de392caed83f7ac5 (diff) |
command: Rename -p/--path flag to -s/--search
Diffstat (limited to 'doc_src/command.txt')
-rw-r--r-- | doc_src/command.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc_src/command.txt b/doc_src/command.txt index e93f34b8..cef08fdc 100644 --- a/doc_src/command.txt +++ b/doc_src/command.txt @@ -9,12 +9,14 @@ The following options are available: - \c -h or \c --help prints help and then exits. -- \c -p or \c --path 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>. +- \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>. -With the \c -p 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. +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>. \subsection command-example Examples <tt>command ls</tt> causes fish to execute the \c ls program, even if an 'ls' function exists. -<tt>command -p ls</tt> returns the path to the \c ls program. +<tt>command -s ls</tt> returns the path to the \c ls program. |