Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Bugs
[Bug 1448] Report wrong command-line options
 

Index | Next | Previous | View Flat


bugzilla-daemon at bugzilla

Mar 8, 2012, 4:33 PM


Views: 158
Permalink
[Bug 1448] Report wrong command-line options

https://bugzilla.mindrot.org/show_bug.cgi?id=1448

Damien Miller <djm [at] mindrot> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |djm [at] mindrot
Status|NEW |RESOLVED
Resolution| |WONTFIX

--- Comment #2 from Damien Miller <djm [at] mindrot> 2012-03-09 11:33:49 EST ---
scp does report unknown options:

$ scp -X a: b:
scp: illegal option -- X
usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i
identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2

It also reports --options options on OpenBSD:

$ scp --blah a: b:
scp: illegal option -- -
usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i
identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2

I think what is happening that GNU getopt is swallowing the long
options before scp sees them. There isn't much scp could do here except
perhaps avoid the system getopt() for its own and I don't think this is
worth it.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Subject User Time
[Bug 1448] Report wrong command-line options bugzilla-daemon at bugzilla Mar 8, 2012, 4:33 PM
    [Bug 1448] Report wrong command-line options bugzilla-daemon at bugzilla Mar 12, 2012, 1:58 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.