@@ -797,7 +797,7 @@ _filedir()
797797# this to be useful.
798798# Returns 0 if current option was split, 1 otherwise.
799799#
800- _split_longopt ()
800+ _comp__split_longopt ()
801801{
802802 if [[ $cur == --?* = * ]]; then
803803 # Cut also backslash before '=' in case it ended up there
@@ -977,7 +977,7 @@ _comp_variable_assignments()
977977# -e XSPEC Passed to _filedir as first arg for stderr redirections
978978# -o XSPEC Passed to _filedir as first arg for other output redirections
979979# -i XSPEC Passed to _filedir as first arg for stdin redirections
980- # -s Split long options with _split_longopt , implies -n =
980+ # -s Split long options with _comp__split_longopt , implies -n =
981981# @param $1...$3 args Original arguments specified to the completion function.
982982# The first argument $1 is command name. The second
983983# argument $2 is the string before the cursor in the
@@ -1066,7 +1066,7 @@ _comp_initialize()
10661066 (( cword <= 0 )) && return 1
10671067 prev=${words[cword - 1]}
10681068
1069- [[ $opt_split ]] && _split_longopt && was_split=" set"
1069+ [[ $opt_split ]] && _comp__split_longopt && was_split=" set"
10701070
10711071 return 0
10721072}
@@ -2370,7 +2370,7 @@ _complete_as_root()
23702370 [[ $EUID -eq 0 || ${root_command-} ]]
23712371}
23722372
2373- _longopt ()
2373+ _comp_longopt ()
23742374{
23752375 local cur prev words cword was_split comp_args
23762376 _comp_initialize -s -- " $@ " || return
@@ -2420,7 +2420,8 @@ _longopt()
24202420 fi
24212421}
24222422# makeinfo and texi2dvi are defined elsewhere.
2423- complete -F _longopt a2ps awk base64 bash bc bison cat chroot colordiff cp \
2423+ complete -F _comp_longopt \
2424+ a2ps awk base64 bash bc bison cat chroot colordiff cp \
24242425 csplit cut date df diff dir du enscript env expand fmt fold gperf \
24252426 grep grub head irb ld ldd less ln ls m4 mkdir mkfifo mknod \
24262427 mv netstat nl nm objcopy objdump od paste pr ptx readelf rm rmdir \
0 commit comments