5
2
I was discussing with my friend on how the commands are parsed in the shell, and he told me that bash searches the command in following order
- List of aliases
- List of shell keywords
- List of user defined functions
- List of shell built in functions
- List of directories specified in the PATH variable , from left to right.
I know aliases can be found by issuing the "alias" command. PATH variable contents can be found using "echo $PATH" command.
Can you please tell me which commands do I need to use to
- list all shell keywords
- list all user defined functions
- list all shell built in functions
Thanks.
+1.Thanks for elaboration. I checked and
man builtins
worked in GNU/Linux/. Also from other post I found thatman bash | grep -10 RESERVED
andenable
are useful for reserved words and builtins respectively. – Forever Learner – 2013-02-01T21:08:00.590