Bug 143916 - hdparm --help should write to stdout not stderr
Summary: hdparm --help should write to stdout not stderr
Alias: None
Product: Fedora
Classification: Fedora
Component: hdparm   
(Show other bugs)
Version: 3
Hardware: All Linux
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2005-01-01 10:29 UTC by Ed Avis
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-01-03 10:36:44 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Ed Avis 2005-01-01 10:29:37 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.5)
Gecko/20041110 Firefox/1.0

Description of problem:
hdparm --help writes help text to stderr and then exits with a failure
status.  But the GNU standard is for the help text to go to stdout,
and for the command to then exit with status zero.  For example:

% grep --help >/dev/null && echo yes
% hdparm --help >/dev/null && echo yes

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

How reproducible:

Steps to Reproduce:
hdparm --help

Actual Results:  Usage text printed on stdout file descriptor and
hdparm exits with nonzero status.

Expected Results:  Usage text goes to stdout and exit status is zero.

Additional info:

Comment 2 Karsten Hopp 2005-01-03 10:36:44 UTC
hdparm prints the help text to stderr and exits with  failure status
if you omit a required parameter or use unsupported options such as
--help. It prints to stdout and exits with status zero if you run it
with the option -h to get help.
I've added support for --help and have built a new package.

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