Skip to content

Commit 2b3f854

Browse files
authored
Merge pull request #1040 from scop/fix/misc
fix: misc from #1028, #1029
2 parents 28b9d45 + 636bb7c commit 2b3f854

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

bash_completion

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ _comp_variable_assignments()
12291229
case $prev in
12301230
TZ)
12311231
cur=/usr/share/zoneinfo/$cur
1232-
_comp_compgen -a filedir
1232+
_comp_compgen_filedir
12331233
if ((${#COMPREPLY[@]})); then
12341234
for i in "${!COMPREPLY[@]}"; do
12351235
if [[ ${COMPREPLY[i]} == *.tab ]]; then
@@ -2050,7 +2050,7 @@ _comp_compgen_allowed_groups()
20502050
# @since 2.12
20512051
_comp_selinux_users()
20522052
{
2053-
_comp_compgen -a split -- "$(semanage user -nl 2>/dev/null |
2053+
_comp_compgen_split -- "$(semanage user -nl 2>/dev/null |
20542054
awk '{ print $1 }')"
20552055
}
20562056

completions/cvs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ _comp_cmd_cvs()
5656
local cur prev words cword comp_args
5757
_comp_initialize -n : -- "$@" || return
5858

59-
local count mode="" i cvsroot="" has_cvsroot="" cvsroots pwd
59+
local count mode="" i cvsroot="" has_cvsroot="" pwd
6060
local -a flags files entries changed newremoved
6161

6262
local noargopts='!(-*|*[d]*)'

completions/openssl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
_comp_cmd_openssl__compgen_sections()
44
{
5-
local config f
5+
local config i f
66

77
# check if a specific configuration file is used
88
for ((i = 2; i < cword; i++)); do

completions/ssh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ _comp_cmd_ssh__compgen_queries()
88
key-plain key-sig protocol-version compression sig ciphers macs
99
kexalgorithms pubkeyacceptedkeytypes hostkeyalgorithms
1010
hostbasedkeytypes hostbasedacceptedkeytypes)
11-
_comp_compgen -ac "${cur,,}" -- -W '"${ret[@]}" help"'
11+
_comp_compgen -c "${cur,,}" -- -W '"${ret[@]}" help"'
1212
}
1313

1414
# @since 2.12
@@ -37,7 +37,7 @@ _comp_cmd_ssh__compgen_ciphers()
3737
[[ ${ret-} ]] || ret=(3des-cbc aes128-cbc aes192-cbc aes256-cbc
3838
aes128-ctr aes192-ctr aes256-ctr arcfour128 arcfour256 arcfour
3939
blowfish-cbc cast128-cbc)
40-
_comp_compgen -a -- -W '"${ret[@]}"'
40+
_comp_compgen -- -W '"${ret[@]}"'
4141
}
4242

4343
_comp_cmd_ssh__compgen_macs()
@@ -46,7 +46,7 @@ _comp_cmd_ssh__compgen_macs()
4646
_comp_compgen -v ret -i ssh query "$1" mac
4747
[[ ${ret-} ]] || ret=(hmac-md5 hmac-sha1 [email protected]
4848
hmac-ripemd160 hmac-sha1-96 hmac-md5-96)
49-
_comp_compgen -a -- -W '"${ret[@]}"'
49+
_comp_compgen -- -W '"${ret[@]}"'
5050
}
5151

5252
# @since 2.12

0 commit comments

Comments
 (0)