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.
_comp_compgen
_comp_cmd_upgradepkg
1 parent 05e70ed commit a0973d7Copy full SHA for a0973d7
completions/upgradepkg
@@ -13,10 +13,9 @@ _comp_cmd_upgradepkg()
13
if [[ $cur == ?*%* ]]; then
14
prev="${cur%%?(\\)%*}"
15
cur="${cur#*%}"
16
- local nofiles="" IFS=$'\n'
+ local nofiles=""
17
compopt -o filenames
18
- COMPREPLY=($(compgen -P "$prev%" -f -X "!*.@(t[bgxl]z)" -- "$cur"))
19
- [[ ${COMPREPLY-} ]] || nofiles=set
+ _comp_compgen -- -P "$prev%" -f -X "!*.@(t[bgxl]z)" || nofiles=set
20
_comp_compgen -a -- -P "$prev%" -S '/' -d
21
[[ $nofiles ]] && compopt -o nospace
22
return
0 commit comments