Bash type: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 10: Line 10:


Also see: {{Internal|Bash_Functions#Function_Info|Function Info}}
Also see: {{Internal|Bash_Functions#Function_Info|Function Info}}
=Options=
==-t==
<tt>type</tt> prints a string which is one of "alias", "keyword", "function", "builtin", or "file" if the argument is an alias, shell reserved word, function, builtin, or disk file, respectively.  If the name is not found, then nothing is printed, and an exit status of false  is  returned.

Revision as of 18:02, 2 February 2018

Internal

Overview

type function_name

returns the source of that particular function.

Also see:

Function Info

Options

-t

type prints a string which is one of "alias", "keyword", "function", "builtin", or "file" if the argument is an alias, shell reserved word, function, builtin, or disk file, respectively. If the name is not found, then nothing is printed, and an exit status of false is returned.