Skip to content

Commit

Permalink
fix(ssh): remove -a of generators
Browse files Browse the repository at this point in the history
All the caller sites seem to be in the context where -a is not needed,
so we can just remove it without modifying the callers.
  • Loading branch information
akinomyoga authored and scop committed Aug 20, 2023
1 parent 83844b7 commit 55c5c45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions completions/ssh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ _comp_cmd_ssh__compgen_queries()
key-plain key-sig protocol-version compression sig ciphers macs
kexalgorithms pubkeyacceptedkeytypes hostkeyalgorithms
hostbasedkeytypes hostbasedacceptedkeytypes)
_comp_compgen -ac "${cur,,}" -- -W '"${ret[@]}" help"'
_comp_compgen -c "${cur,,}" -- -W '"${ret[@]}" help"'
}

# @since 2.12
Expand Down Expand Up @@ -37,7 +37,7 @@ _comp_cmd_ssh__compgen_ciphers()
[[ ${ret-} ]] || ret=(3des-cbc aes128-cbc aes192-cbc aes256-cbc
aes128-ctr aes192-ctr aes256-ctr arcfour128 arcfour256 arcfour
blowfish-cbc cast128-cbc)
_comp_compgen -a -- -W '"${ret[@]}"'
_comp_compgen -- -W '"${ret[@]}"'
}

_comp_cmd_ssh__compgen_macs()
Expand All @@ -46,7 +46,7 @@ _comp_cmd_ssh__compgen_macs()
_comp_compgen -v ret -i ssh query "$1" mac
[[ ${ret-} ]] || ret=(hmac-md5 hmac-sha1 [email protected]
hmac-ripemd160 hmac-sha1-96 hmac-md5-96)
_comp_compgen -a -- -W '"${ret[@]}"'
_comp_compgen -- -W '"${ret[@]}"'
}

# @since 2.12
Expand Down

0 comments on commit 55c5c45

Please sign in to comment.