File tree Expand file tree Collapse file tree 7 files changed +13
-15
lines changed Expand file tree Collapse file tree 7 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ _comp_cmd_config_list()
1515 [[ $was_split ]] && return
1616
1717 if [[ $cur == -* ]]; then
18- COMPREPLY=( $( compgen -W ' --inputfile --outputfile --checkonly
19- --verbose --help' -- " $cur " ) )
18+ _comp_compgen -- -W ' --inputfile --outputfile --checkonly
19+ --verbose --help'
2020 else
2121 # Prefer `list_lists` in the same dir as command
2222 local pathcmd
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ _comp_cmd_cpio()
3131 [[ $was_split ]] && return
3232
3333 if (( cword == 1 )) ; then
34- COMPREPLY=( $( compgen - W ' -o --create -i --extract -p --pass-through
35- -? -- help --license --usage --version' -- " $cur " ) )
34+ _comp_compgen -- - W ' -o --create -i --extract -p --pass-through -?
35+ -- help --license --usage --version'
3636 else
3737 case ${words[1]} in
3838 -o | --create)
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ _comp_cmd_ipmitool()
1919 local -a files
2020 _comp_expand_glob files ' /dev/ipmi* /dev/ipmi/* /dev/ipmidev/*'
2121 (( ${# files[@]} )) &&
22- COMPREPLY=( $( compgen - W ' "${files[@]##*([^0-9])}"' -X ' ![0-9]*' -- " $cur " ) )
22+ _comp_compgen -- - W ' "${files[@]##*([^0-9])}"' -X ' ![0-9]*'
2323 return
2424 ;;
2525 -* I)
Original file line number Diff line number Diff line change @@ -198,8 +198,8 @@ _comp_cmd_koji()
198198 search)
199199 case $nth in
200200 1)
201- COMPREPLY=( $( compgen - W ' package build tag target
202- user host rpm' -- " $cur " ) )
201+ _comp_compgen -- - W ' package build tag target user host
202+ rpm'
203203 ;;
204204 esac
205205 ;;
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ _comp_cmd_list_members()
2323 [[ $was_split ]] && return
2424
2525 if [[ $cur == -* ]]; then
26- COMPREPLY=( $( compgen - W ' --output --regular --digest --nomail
27- --fullnames -- preserve --help' -- " $cur " ) )
26+ _comp_compgen -- - W ' --output --regular --digest --nomail --fullnames
27+ --preserve --help'
2828 else
2929 # Prefer `list_lists` in the same dir as command
3030 local pathcmd
Original file line number Diff line number Diff line change @@ -45,8 +45,7 @@ _comp_cmd_qemu()
4545 return
4646 ;;
4747 -net)
48- COMPREPLY=($( compgen -W ' nic user tap socket vde none dump' \
49- -- " $cur " ) )
48+ _comp_compgen -- -W ' nic user tap socket vde none dump'
5049 return
5150 ;;
5251 -serial | -parallel | -monitor)
Original file line number Diff line number Diff line change @@ -182,8 +182,8 @@ _comp_cmd_ssh__suboption()
182182 _comp_compgen_filedir so
183183 ;;
184184 preferredauthentications)
185- COMPREPLY=( $( compgen -W ' gssapi-with-mic host-based publickey
186- keyboard-interactive password' -- " $cur " ) )
185+ _comp_compgen -- -W ' gssapi-with-mic host-based publickey
186+ keyboard-interactive password'
187187 ;;
188188 protocol)
189189 local protocols=($( _comp_cmd_ssh__query " $1 " protocol-version) )
@@ -211,8 +211,7 @@ _comp_cmd_ssh__suboption()
211211 _comp_compgen -- -W ' DAEMON USER AUTH LOCAL{0..7}'
212212 ;;
213213 tunnel)
214- COMPREPLY=($( compgen -W ' yes no point-to-point ethernet' \
215- -- " $cur " ) )
214+ _comp_compgen -- -W ' yes no point-to-point ethernet'
216215 ;;
217216 updatehostkeys | verifyhostkeydns)
218217 _comp_compgen -- -W ' yes no ask'
You can’t perform that action at this time.
0 commit comments