diff options
author | Mark Griffiths <mark@thebespokepixel.com> | 2014-09-03 15:10:53 +0100 |
---|---|---|
committer | Mark Griffiths <mark@thebespokepixel.com> | 2014-09-03 15:10:53 +0100 |
commit | adbcecb456bc74f7a58dfae3daef0c7a45cd8d32 (patch) | |
tree | 8c5b677207e29246fe03b169bed45f6f4b795c3e /doc_src/type.txt | |
parent | 3df9e20ca762584d68df1f7c507592264acf83aa (diff) |
Rebase documentation changes
Diffstat (limited to 'doc_src/type.txt')
-rw-r--r-- | doc_src/type.txt | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/doc_src/type.txt b/doc_src/type.txt index 7d2193ef..2f55d72a 100644 --- a/doc_src/type.txt +++ b/doc_src/type.txt @@ -11,15 +11,17 @@ With no options, `type` indicates how each `NAME` would be interpreted if used a 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>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. - -`type` sets the exit status to 0 if the specified command was found, and 1 if it could not be found. +- `-a` or `--all` prints all of possible definitions of the specified names. + +- `-f` or `--no-functions` suppresses function and builtin lookup. + +- `-t` or `--type` prints `function`, `builtin`, or `file` if `NAME` is a shell function, builtin, or disk file, respectively. + +- `-p` or `--path` returns the name of the disk file that would be executed, or nothing if `type -t name` would not return `file`. + +- `-P` or `--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>. + +- `-q` or `--quiet` suppresses all output; this is useful when testing the exit status. \subsection type-example Example |