Bug 1376801

Summary: manpage lists wrong flags for 'echo' command
Product: [Fedora] Fedora Reporter: Mohammed Sadiq <redhat>
Component: coreutilsAssignee: Kamil Dudka <kdudka>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: admiller, jamartis, kdudka, kzak, ooprala, ovasik, p, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-16 13:55:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mohammed Sadiq 2016-09-16 12:26:52 UTC
the manpage of 'echo' command lists --help and --version, which is wrong.

The GNU info page of 'echo' specifically says that '--' is treated just like any other character.
So manpage should be updated to reflect this change.

Comment 1 Pádraig Brady 2016-09-16 13:55:11 UTC
The man page is for coreutils, while you're probably using your shell builtin echo. To get the coreutils version use `env echo`. Better again is to use printf rather than echo as the latter is non portable and awkward in many regards. Also to get help for the shell echo, use `help echo`.  I understand the new version of bash will output this automatically output the equivalent of `help $builtin` with `$builtin --help`, though I expect echo may be different in this regard