@@ -691,7 +691,7 @@ _comp_get_words()
691691# @param $1 current word to complete (cur)
692692# @modifies global array $COMPREPLY
693693#
694- __ltrim_colon_completions ()
694+ _comp_ltrim_colon_completions ()
695695{
696696 local i=${# COMPREPLY[*]}
697697 (( i == 0 )) && return 0
@@ -703,7 +703,7 @@ __ltrim_colon_completions()
703703 COMPREPLY[i]=${COMPREPLY[i]# " $colon_word " }
704704 done
705705 fi
706- } # __ltrim_colon_completions ()
706+ } # _comp_ltrim_colon_completions ()
707707
708708# This function quotes the argument in a way so that readline dequoting
709709# results in the original argument. This is necessary for at least
@@ -842,12 +842,12 @@ _variables()
842842 if [[ ${BASH_REMATCH[3]} == [@* ] ]]; then
843843 COMPREPLY+=(" ${BASH_REMATCH[1]}${BASH_REMATCH[2]} [${BASH_REMATCH[3]} ]}" )
844844 fi
845- __ltrim_colon_completions " $cur " # array indexes may have colons
845+ _comp_ltrim_colon_completions " $cur " # array indexes may have colons
846846 return 0
847847 elif [[ $cur =~ ^\$\{ [#! ]?[A-Za-z0-9_]*\[.*\]$ ]]; then
848848 # Complete ${array[idx] with ${array[idx]}
849849 COMPREPLY+= (" $cur }" )
850- __ltrim_colon_completions " $cur "
850+ _comp_ltrim_colon_completions " $cur "
851851 return 0
852852 fi
853853 return 1
@@ -907,7 +907,7 @@ _comp_delimited()
907907 COMPREPLY[i]=" $prefix ${COMPREPLY[i]} "
908908 done
909909
910- [[ $delimiter != : ]] || __ltrim_colon_completions " $cur "
910+ [[ $delimiter != : ]] || _comp_ltrim_colon_completions " $cur "
911911}
912912
913913# Complete assignment of various known environment variables.
@@ -1246,7 +1246,7 @@ _mac_addresses()
12461246
12471247 (( ${# COMPREPLY[@]} )) &&
12481248 _comp_compgen COMPREPLY -W ' "${COMPREPLY[@]}"' -- " $cur "
1249- __ltrim_colon_completions " $cur "
1249+ _comp_ltrim_colon_completions " $cur "
12501250}
12511251
12521252# This function completes on configured network interfaces
@@ -2157,7 +2157,7 @@ _known_hosts_real()
21572157 fi
21582158 fi
21592159
2160- __ltrim_colon_completions " $prefix$cur "
2160+ _comp_ltrim_colon_completions " $prefix$cur "
21612161
21622162} # _known_hosts_real()
21632163complete -F _known_hosts traceroute traceroute6 \
0 commit comments