From 72e8489d50d749c86d5b57609bb0c4d83a03b41a Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Thu, 10 Jul 2014 19:16:32 -0700 Subject: command: Rename -p/--path flag to -s/--search --- doc_src/command.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc_src/command.txt') 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 $PATH. +- \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 -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 command, the \c -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 -p ls returns the path to the \c ls program. +command -s ls returns the path to the \c ls program. -- cgit v1.2.3