Bug 1119012

Summary: test --help not showing in terminal
Product: Red Hat Enterprise Linux 6 Reporter: cybernet <cybernet2u>
Component: coreutilsAssignee: Ondrej Vasik <ovasik>
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.5CC: pbrady
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-13 15:42:08 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:
Embargoed:

Description cybernet 2014-07-13 04:11:44 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. open terminal
2. su root
3. test --help

Actual results:
NULL

Expected results:
Help Menu :)

Additional info:

Comment 3 Ondrej Vasik 2014-07-13 15:42:08 UTC
Stating documentation of coreutils:
"If EXPRESSION is omitted, `test' returns false.  If EXPRESSION is a
single argument, `test' returns false if the argument is null and true
otherwise.  The argument can be any string, including strings like
`-d', `-1', `--', `--help', and `--version' that most other programs
would treat as options.  To get help and version information, invoke
the commands `[ --help' and `[ --version', without the usual closing
brackets."

It is defined by posix that test should not accept --help and --version arguments ( http://pubs.opengroup.org/onlinepubs/009696799/utilities/test.html ) . [ --help and [ --version works as expected.

Even though I don't agree with the reassignment to coreutils - as the simple test is shell builtin , closing not a bug, as this behaviour is specified by posix.