We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e193ed commit 8d2c976Copy full SHA for 8d2c976
completions/ssh
@@ -168,7 +168,7 @@ _ssh_suboption_check()
168
{
169
# Get prev and cur words without splitting on =
170
local cureq=`_get_cword :=` preveq=`_get_pword :=`
171
- if [[ $cureq == *=* && $preveq == -o ]]; then
+ if [[ $cureq == *=* && $preveq == -*o ]]; then
172
_ssh_suboption $cureq "$1"
173
return $?
174
fi
test/t/test_ssh.py
@@ -19,3 +19,7 @@ def test_3(self, completion):
19
Assumes there's no "bash" known host.
20
"""
21
assert "bash" not in completion
22
+
23
+ @pytest.mark.complete("ssh -vo AddressFamily=")
24
+ def test_4(self, completion):
25
+ assert completion
0 commit comments