Subject: bug#19604: echo --help does not work

From: Pádraig Brady <[email-masked]>
Date: Thu, 15 Jan 2015 11:36:32 +0000

tag 19604 notabug
close 19604
stop

On 15/01/15 06:20, prateek goyal wrote:
> Hi,
> 
> 
> when I try to use --help option with echo command, it does not print help contents, but prints "--help".
> 
> 
> prateek@prateek-pc:~/Documents/awk$ echo --help
> --help

You're actually using your shell's echo there.
To use the coreutils one:

  env echo --help

To invoke help for the shell builtin in bash you:

  help echo

Note newer versions of bash will support $builtin --help,
though I've not tested the echo case which would
introduce a change in behavior.

thanks,
Pádraig.