title: What order does bash use to decide whether to use an alias, function, built-in, or executable?
body: <p>Someone writing a bash can define functions and aliases, and bash has its own built-ins. Additionally, bash can run executables available on the system.</p>
  <p>For the sake of this question, assume that the shell (whether interactive or non-interactive) has alias expansion enabled.</p>
  <p>If a user-defined function has the same name as an executable, will bash run the function or the executable?</p>
  <p>If a user-defined function has the same name as a bash built-in, will bash run the function or the built-in?</p>
  <p>And so on - what is the order of precedence for what bash will run if there are two (or more) things with the same identifier?</p>