Skip to main content
Post Closed as "Duplicate" by Gilles 'SO- stop being evil' bash
edited tags
Link
Gilles 'SO- stop being evil'
  • 838.6k
  • 198
  • 1.8k
  • 2.2k
Source Link
Tim
  • 103.2k
  • 210
  • 615
  • 1k

How does the shell decide which of same-name keyword, builtin, and external command to run?

When there are same-name builtin, keyword and/or external command, what is the order in which the Bash shell decides which to run?

For example,

  • keyword time and external command time,
  • builtin printf and external command printf from coreutils.