TYPE(1)

NAME

type - describe how command names would be resolved.

SYNOPSIS

type [-afpPt] name ...

DESCRIPTION

type describes how each command name would be resolved. Rush reports aliases, special builtins, shell functions, regular builtins, and external commands in command lookup order. Short options may be combined, for example type -at name.

OPTIONS

-a
Print all matching resolutions instead of stopping at the first match.
-f
Suppress shell function lookup.
-p
Print only the path for external command matches.
-P
Force PATH lookup and skip aliases, functions, and builtins.
-t
Print only the resolution kind: alias, builtin, function, or file.
--
End option parsing.

EXIT STATUS

Zero when every name is found, one when any name is not found, and two for usage errors.

SEE ALSO

rush-builtins(7).