Bug 1670 - Send --help to stdout, not stderr
Summary: Send --help to stdout, not stderr
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 5.3p1
Hardware: Other Linux
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-02 07:51 AEDT by Jari Aalto
Modified: 2010-04-16 15:50 AEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jari Aalto 2009-11-02 07:51:31 AEDT
This can be expected to appear in stderr:                                                                          

     $ ssh -8
     sh: illegal option -- 8
     usage: ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]

But this should go to stdout, not stderr:

     $ ssh --help | less

Please chnage the -help option to send text to stdout, not stderr.
See GNU cp(1), ls(1) etc.
Comment 1 Darren Tucker 2009-11-02 09:30:11 AEDT
ssh(1) does not have a --help option (nor any other long options for that matter).  Sending output to stderr when given an invalid option is entirely reasonable.  See BSD cp(1), ls(1) etc.
Comment 2 Damien Miller 2010-04-16 15:50:25 AEST
Mass move of bugs RESOLVED->CLOSED following the release of openssh-5.5p1