Bug 1376801 - manpage lists wrong flags for 'echo' command
Summary: manpage lists wrong flags for 'echo' command
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kamil Dudka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-16 12:26 UTC by Mohammed Sadiq
Modified: 2016-09-16 13:55 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-16 13:55:11 UTC
Type: Bug


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.