Bug 1670

Summary: Send --help to stdout, not stderr
Product: Portable OpenSSH Reporter: Jari Aalto <jari.aalto>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED INVALID    
Severity: normal CC: dtucker
Priority: P2    
Version: 5.3p1   
Hardware: Other   
OS: Linux   

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