Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Excellent answer! Thank you for the detailed information! Very helpful. Commented May 30, 2021 at 16:57
  • Did you by chance mean to write "So builtin did the one thing that was asked."? Also, did you mean to add something at the end of "...hence the new command which bypasses functions (and aliases, since command foo puts foo in a position where aliases are not expanded) and finds ."? Commented May 30, 2021 at 17:02
  • Finally, what does the ksh builtin command do? Commented May 30, 2021 at 17:06
  • Also, good point regarding zsh. It is nice in a certain sense that command and builtin do two separate things for that shell, but also frustrating when trying to implement code that is compatible across shells. (Another user did try to comment on that, but later deleted their answer...I don't recall their name.) Commented May 30, 2021 at 17:10
  • 1
    So zsh added it's command after POSIX defined the behavior of command and it is another reason to doubt in the seriousness of zsh. Commented May 30, 2021 at 17:29