@@ -826,7 +826,7 @@ _comp__reassemble_words()
826826 printf -v " $2 [i]" %s " ${COMP_WORDS[i]} "
827827 done
828828 fi
829- } # _comp__reassemble_words()
829+ }
830830
831831# @param $1 exclude Characters out of $COMP_WORDBREAKS which should NOT be
832832# considered word breaks. This is useful for things like scp where
@@ -1013,7 +1013,7 @@ _comp_ltrim_colon_completions()
10131013{
10141014 (( ${# COMPREPLY[@]} )) || return 0
10151015 _comp_compgen -c " $1 " ltrim_colon " ${COMPREPLY[@]} "
1016- } # _comp_ltrim_colon_completions()
1016+ }
10171017
10181018# This function quotes the argument in a way so that readline dequoting
10191019# results in the original argument. This is necessary for at least
@@ -1050,7 +1050,7 @@ _comp_quote_compgen()
10501050 printf -v ret " $value " # Decode escape sequences of \....
10511051 fi
10521052 fi
1053- } # _comp_quote_compgen()
1053+ }
10541054
10551055# This function performs file and directory completion. It's better than
10561056# simply using 'compgen -f', because it honours spaces in filenames.
@@ -1112,7 +1112,7 @@ _comp_compgen_filedir()
11121112 # ${v+"${a[@]}"} when IFS does not contain whitespace.
11131113 local IFS=$' \t\n '
11141114 _comp_compgen -U toks set ${toks[@]+" ${toks[@]} " }
1115- } # _comp_compgen_filedir()
1115+ }
11161116
11171117# This function splits $cur=--foo=bar into $prev=--foo, $cur=bar, making it
11181118# easier to support both "--foo bar" and "--foo=bar" style completions.
@@ -2380,7 +2380,7 @@ _known_hosts()
23802380 [[ ${1-} == -c || ${2-} == -c ]] && options+=(-c)
23812381 local IFS=$' \t\n ' # Workaround for connected ${v+"$@"} in bash < 4.4
23822382 _comp_compgen_known_hosts ${options[@]+" ${options[@]} " } -- " $cur "
2383- } # _known_hosts()
2383+ }
23842384
23852385# Helper function to locate ssh included files in configs
23862386# This function looks for the "Include" keyword in ssh config files and
@@ -2434,7 +2434,7 @@ _comp__included_ssh_config_files()
24342434 fi
24352435 done
24362436 done
2437- } # _comp__included_ssh_config_files()
2437+ }
24382438
24392439# Helper function for completing _known_hosts.
24402440# This function performs host completion based on ssh's config and known_hosts
@@ -2658,7 +2658,7 @@ _comp_compgen_known_hosts__impl()
26582658 (( ${# known_hosts[@]} )) || return 1
26592659
26602660 _comp_compgen -v known_hosts -c " $prefix$cur " ltrim_colon " ${known_hosts[@]} "
2661- } # _comp_compgen_known_hosts__impl()
2661+ }
26622662complete -F _known_hosts traceroute traceroute6 \
26632663 fping fping6 telnet rsh rlogin ftp dig drill mtr ssh-installkeys showmount
26642664
0 commit comments