which: Option Summary
1
1 3 Option Summary
1 ****************
1
1 '--all'
1 '-a'
1 Print all matching executables in 'PATH', not just the first.
1
1 '--read-alias'
1 '-i'
1 Read aliases from stdin, reporting matching ones on stdout. This
1 is useful in combination with using an alias for which itself. For
1 example
1 'alias which='alias | which -i''.
1
1 '--skip-alias'
1 Ignore option '--read-alias', if any. This is useful to explicity
1 search for normal binaries, while using the '--read-alias' option
1 in an alias or function for which.
1
1 '--read-functions'
1 Read shell function definitions from stdin, reporting matching ones
1 on stdout. This is useful in combination with using a shell
1 function for which itself. For example:
1 'which() { declare -f | which --read-functions $@ }
1 export -f which'
1
1 '--skip-functions'
1 Ignore option '--read-functions', if any. This is useful to
1 explicity search for normal binaries, while using the
1 '--read-functions' option in an alias or function for which.
1
1 '--skip-dot'
1 Skip directories in 'PATH' that start with a dot.
1
1 '--skip-tilde'
1 Skip directories in 'PATH' that start with a tilde and executables
1 which reside in the 'HOME' directory.
1
1 '--show-dot'
1 If a directory in 'PATH' starts with a dot and a matching
1 executable was found for that path, then print "./programname"
1 rather than the full path.
1
1 '--show-tilde'
1 Output a tilde when a directory matches the 'HOME' directory. This
1 option is ignored when which is invoked as root.
1
1 '--tty-only'
1 Stop processing options on the right if not on tty.
1
1 '--version, -v, -V'
1 Print version information on standard output then exit
1 successfully.
1
1 '--help'
1 Print usage information on standard output then exit successfully.
1