diff options
author | Kevin Ballard <kevin@sb.org> | 2014-07-10 00:18:50 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-07-13 19:11:29 -0700 |
commit | 6f7a7459c1dadc88e793b558d5ce2668359e7bea (patch) | |
tree | 5aa82504e3830808913fddde1532614cd65ce52d /doc_src/type.txt | |
parent | 6b062b07b4758883c3d2b7bb28791a86b267ba0a (diff) |
test: Add a new --quiet flag to suppress output
The --quiet flag is useful when only the exit status matters.
Fix the documentation for the -t flag to no longer claim that `type` can
print "keyword", as it never does that.
Stop printing a blank line for functions/builtins when the -p flag has
been passed. It's just not useful.
Diffstat (limited to 'doc_src/type.txt')
-rw-r--r-- | doc_src/type.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc_src/type.txt b/doc_src/type.txt index 25bac528..8945102c 100644 --- a/doc_src/type.txt +++ b/doc_src/type.txt @@ -12,9 +12,10 @@ The following options are available: - \c -h or \c --help prints help and then exits. - \c -a or \c --all prints all of possible definitions of the specified names. - \c -f or \c --no-functions suppresses function and builtin lookup. -- \c -t or \c --type prints <tt>keyword</tt>, <tt>function</tt>, <tt>builtin</tt>, or <tt>file</tt> if \c NAME is a shell reserved word, function, builtin, or disk file, respectively. +- \c -t or \c --type prints <tt>function</tt>, <tt>builtin</tt>, or <tt>file</tt> if \c NAME is a shell function, builtin, or disk file, respectively. - \c -p or \c --path returns the name of the disk file that would be executed, or nothing if 'type -t name' would not return 'file'. - \c -P or \c --force-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 -q or \c --quiet suppresses all output; this is useful when testing the exit status. \c type sets the exit status to 0 if the specified command was found, and 1 if it could not be found. |