3 ms·
There are some built-ins which also have a corresponding command. For example "true" is a built-in in bash, but there's also "/bin/true". So some people might p
by viraptor 15y ago
There are some built-ins which also have a corresponding command. For example "true" is a built-in in bash, but there's also "/bin/true". So some people might prefer to use /bin/true for whatever reason. I believe this is what that quoted fragment referred to.
- scott_s 15y agoCorrect, but his point was that the sentence says built-ins can be relocated, which makes no sense.
- viraptor 15y agoI think it was just a mistake, or a mental shortcut for: "If the full path is used and the [binary or script reimplementing said] built-in has been relocated"
- scott_s 15y agoBuilt-ins don't call a separate binary or script - they are literally implemented as a part of the shell. That is, if you look at the shell source code, you will see functions that implement the built-ins. As I pointed out elsewhere, I think they mistakenly said "built-ins."