File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -2679,7 +2679,7 @@ _comp_command_offset()
2679
2679
if (( ${# COMPREPLY[@]} == 0 )) ; then
2680
2680
# XXX will probably never happen as long as completion loader loads
2681
2681
# *something* for every command thrown at it ($cspec != empty)
2682
- _minimal " ${args[@]} "
2682
+ _comp_complete_minimal " ${args[@]} "
2683
2683
fi
2684
2684
elif [[ $cspec == * ' -F ' * ]]; then
2685
2685
# complete -F <function>
@@ -2958,15 +2958,15 @@ unset -f _comp__init_install_xspec
2958
2958
2959
2959
# Minimal completion to use as fallback in _comp_complete_load.
2960
2960
# TODO:API: rename per conventions
2961
- _minimal ()
2961
+ _comp_complete_minimal ()
2962
2962
{
2963
2963
local cur prev words cword comp_args
2964
2964
_comp_initialize -- " $@ " || return
2965
2965
compopt -o bashdefault -o default
2966
2966
}
2967
2967
# Complete the empty string to allow completion of '>', '>>', and '<' on < 4.3
2968
2968
# https://lists.gnu.org/archive/html/bug-bash/2012-01/msg00045.html
2969
- complete -F _minimal ''
2969
+ complete -F _comp_complete_minimal ''
2970
2970
2971
2971
# @since 2.12
2972
2972
_comp_load()
@@ -3094,7 +3094,7 @@ _comp_load()
3094
3094
complete -F _comp_complete_filedir_xspec " $cmdname " " $backslash$cmdname " && return 0
3095
3095
3096
3096
if [[ $flag_fallback_default ]]; then
3097
- complete -F _minimal -- " $origcmd " && return 0
3097
+ complete -F _comp_complete_minimal -- " $origcmd " && return 0
3098
3098
fi
3099
3099
3100
3100
return 1
Original file line number Diff line number Diff line change @@ -28,11 +28,14 @@ _comp_deprecate_func 2.12 _installed_modules _comp_compgen_inserted_kernel_modul
28
28
_comp_deprecate_func 2.12 _usergroup _comp_compgen_usergroups
29
29
_comp_deprecate_func 2.12 _complete_as_root _comp_as_root
30
30
_comp_deprecate_func 2.12 __load_completion _comp_load
31
+
32
+ # completers
31
33
_comp_deprecate_func 2.12 _service _comp_complete_service
32
34
_comp_deprecate_func 2.12 _user_at_host _comp_complete_user_at_host
33
35
_comp_deprecate_func 2.12 _known_hosts _comp_complete_known_hosts
34
36
_comp_deprecate_func 2.12 _longopt _comp_complete_longopt
35
37
_comp_deprecate_func 2.12 _filedir_xspec _comp_complete_filedir_xspec
38
+ _comp_deprecate_func 2.12 _minimal _comp_complete_minimal
36
39
37
40
# @deprecated 2.12 Use `_comp_xspecs`
38
41
declare -Ag _xspecs
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ _comp_cmd_gcc()
65
65
" $1 " --version 2> /dev/null | command grep -q GCC; then
66
66
complete -F _comp_cmd_gcc " $1 "
67
67
else
68
- complete -F _minimal " $1 "
68
+ complete -F _comp_complete_minimal " $1 "
69
69
fi
70
70
} &&
71
71
_comp_cmd_gcc__setup_cmd cc gcc &&
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ _comp_cmd_makepkg__bootstrap()
33
33
fname=_comp_cmd_makepkg__slackware
34
34
;;
35
35
* )
36
- fname=_minimal
36
+ fname=_comp_complete_minimal
37
37
;;
38
38
esac
39
39
You can’t perform that action at this time.
0 commit comments