[Toybox] echo --help
Aleksander Morgado
aleksandermj at google.com
Wed Oct 8 02:48:33 PDT 2025
On Tue, Oct 7, 2025 at 7:45 PM Rob Landley <rob at landley.net> wrote:
>
> In bash, "echo --help" prints "--help". In /bin/bash it dumps help text.
>
> Gnu is nothing if not consistent.
What do you mean with "In /bin/bash it dumps help text"? do you mean
in "/bin/echo --help"?
In bash, "echo" refers to the "echo" builtin, which does not have a
--help option because it's not calling an external program:
https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#index-echo
I was wondering about why /bin/echo (e.g. from GNU coreutils) even
exists when the posix shell has an echo builtin, and this post has
some reasoning behind that:
https://stackoverflow.com/questions/76727253/why-does-bash-have-both-a-built-in-echo-command-and-standalone-echo-programs
More information about the Toybox
mailing list