So apparently OpenSSH accepts but ignores --, i.e. it still parses options after the --...
-
-
-
Replying to @canadianbryan @RichFelker
$ ssh -V -- OpenSSH_7.5, LibreSSL 2.6.0 $ ssh -- -V ssh: Could not resolve hostname -v: no address associated with name
3 replies 1 retweet 1 like -
Replying to @canadianbryan
Maybe it's OpenBSD vs portable difference? Misuse of getopt?
1 reply 0 retweets 0 likes -
Replying to @RichFelker @canadianbryan
It's a misuse of getopt. ssh.c's main() does "goto again" after peeling off hostname, accepts more options after the hostname.
1 reply 0 retweets 1 like -
Replying to @RichFelker @canadianbryan
And because getopt was reset (optreset) and re-run with new starting argc/argv, it doesn't see the "--" and accepts more options... Uhg.
1 reply 0 retweets 0 likes
Replying to @RichFelker @canadianbryan
I think a one-line all-minus patch fixes it: - goto again;
8:35 PM - 10 Aug 2017
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.