GNU bug report logs - #19604
echo --help does not work

Previous Next

Package: coreutils;

Reported by: prateek goyal <prateek.goyal5 <at> gmail.com>

Date: Thu, 15 Jan 2015 07:06:01 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at control <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: prateek goyal <prateek.goyal5 <at> gmail.com>, 19604 <at> debbugs.gnu.org
Subject: Re: bug#19604: echo --help does not work
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 <at> 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.





This bug report was last modified 10 years and 131 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.