A request to segregate man pages for shell built-ins
carlj at peak.org
Thu Oct 26 21:52:21 UTC 2017
Polytropon <freebsd at edvax.de> writes:
>> > Keep in mind some shells also offer a builtin replacement for
>> > an existing binary. A good example is echo where a binary exists,
>> > but the C Shell has its own internal echo, while BASH uses the
>> > binary one:
>> > % which echo
>> > echo: shell built-in command.
>> > $ which echo
>> > /bin/echo
>> Again, despite that, echo _is_ builtin to sh(1) - and has more options.
> That is correct (even though sh's "which echo" reports the binary);
> sh's echo supports escape sequences using the -e option, while the
> binary doesn't.
'Which' is an external for sh so it can't show builtin commands. Sh has
the builtin 'type' command which is the equivalent of 'which' for csh.
Carl Johnson carlj at peak.org
More information about the freebsd-questions