Closed TestingPlant closed 2 years ago
Trying to complete find -exec outputs
find -exec
-bash: COMP_WORDS: bad array subscript
Show possible values for the -exec flag
-exec
echo "$BASH_VERSION"
(IFS=.; echo "${BASH_COMPLETION_VERSINFO[*]}")
N/A
+ local cur prev words cword + _init_completion + local exclude= flag outx errx inx OPTIND=1 + getopts n:e:o:i:s flag + COMPREPLY=() + local 'redir=@(?([0-9])<|?([0-9&])>?(>)|>&)' + _get_comp_words_by_ref -n '<>&' cur prev words cword + local exclude flag i OPTIND=1 + words=() + local cur cword words + upargs=() + upvars=() + local upargs upvars vcur vcword vprev vwords + getopts c:i:n:p:w: flag -n '<>&' cur prev words cword + case $flag in + exclude='<>&' + getopts c:i:n:p:w: flag -n '<>&' cur prev words cword + [[ 6 -ge 3 ]] + case ${!OPTIND} in + vcur=cur + (( OPTIND += 1 )) + [[ 6 -ge 4 ]] + case ${!OPTIND} in + vprev=prev + (( OPTIND += 1 )) + [[ 6 -ge 5 ]] + case ${!OPTIND} in + vwords=words + (( OPTIND += 1 )) + [[ 6 -ge 6 ]] + case ${!OPTIND} in + vcword=cword + (( OPTIND += 1 )) + [[ 6 -ge 7 ]] + __get_cword_at_cursor_by_ref '<>&' words cword cur + words=() + local cword words + __reassemble_comp_words_by_ref '<>&' words cword + local exclude i j line ref + [[ -n <>& ]] + exclude='[<>&]' + printf -v cword %s 1 + [[ -v exclude ]] + line='find -exec' + (( i = 0, j = 0 )) + (( i < 2 )) + [[ 0 -gt 0 ]] + ref='words[0]' + printf -v 'words[0]' %s find + line=' -exec' + (( i == COMP_CWORD )) + (( i++, j++ )) + (( i < 2 )) + [[ 1 -gt 0 ]] + [[ -exec == +([<>&]) ]] + ref='words[1]' + printf -v 'words[1]' %s -exec + line= + (( i == COMP_CWORD )) + printf -v cword %s 1 + (( i++, j++ )) + (( i < 2 )) + (( i == COMP_CWORD )) + local i cur= index=10 'lead=find -exec' + [[ 10 -gt 0 ]] + [[ -n find -exec ]] + [[ -n find-exec ]] + cur='find -exec' + (( i = 0 )) + (( i <= cword )) + [[ 10 -ge 4 ]] + [[ find != \f\i\n\d ]] + (( i < cword )) + local old_size=10 + cur=' -exec' + local new_size=6 + (( index -= old_size - new_size )) + (( ++i )) + (( i <= cword )) + [[ 6 -ge 5 ]] + [[ -exe != \-\e\x\e\c ]] + cur=-exec + (( index > 0 )) + (( index-- )) + [[ 5 -ge 5 ]] + [[ -exec != \-\e\x\e\c ]] + (( i < cword )) + (( ++i )) + (( i <= cword )) + [[ -n -exec ]] + [[ ! -n -exec ]] + (( index < 0 )) + local words cword cur + _upvars -a2 words find -exec -v cword 1 -v cur -exec + (( 10 )) + (( 10 )) + case $1 in + [[ -n 2 ]] + printf %d 2 + [[ -n words ]] + unset -v words + eval 'words=("${@:3:2}")' ++ words=("${@:3:2}") + shift 4 + (( 6 )) + case $1 in + [[ -n cword ]] + unset -v cword + eval 'cword="$3"' ++ cword=1 + shift 3 + (( 3 )) + case $1 in + [[ -n cur ]] + unset -v cur + eval 'cur="$3"' ++ cur=-exec + shift 3 + (( 0 )) + [[ -v vcur ]] + upvars+=("$vcur") + upargs+=(-v $vcur "$cur") + [[ -v vcword ]] + upvars+=("$vcword") + upargs+=(-v $vcword "$cword") + [[ -v vprev ]] + [[ 1 -ge 1 ]] + upvars+=("$vprev") + upargs+=(-v $vprev "${words[cword - 1]}") + [[ -v vwords ]] + upvars+=("$vwords") + upargs+=(-a${#words[@]} $vwords ${words+"${words[@]}"}) + (( 4 )) + local cur cword prev words + _upvars -v cur -exec -v cword 1 -v prev find -a2 words find -exec + (( 13 )) + (( 13 )) + case $1 in + [[ -n cur ]] + unset -v cur + eval 'cur="$3"' ++ cur=-exec + shift 3 + (( 10 )) + case $1 in + [[ -n cword ]] + unset -v cword + eval 'cword="$3"' ++ cword=1 + shift 3 + (( 7 )) + case $1 in + [[ -n prev ]] + unset -v prev + eval 'prev="$3"' ++ prev=find + shift 3 + (( 4 )) + case $1 in + [[ -n 2 ]] + printf %d 2 + [[ -n words ]] + unset -v words + eval 'words=("${@:3:2}")' ++ words=("${@:3:2}") + shift 4 + (( 0 )) + _variables + [[ -exec =~ ^(\$(\{[!#]?)?)([A-Za-z0-9_]*)$ ]] + [[ -exec =~ ^(\$\{[#!]?)([A-Za-z0-9_]*)\[([^]]*)$ ]] + [[ -exec =~ ^\$\{[#!]?[A-Za-z0-9_]*\[.*]$ ]] + case ${prev-} in + return 1 + [[ -exec == @(?([0-9])<|?([0-9&])>?(>)|>&)* ]] + [[ find == @(?([0-9])<|?([0-9&])>?(>)|>&) ]] + local i skip + (( i = 1 )) + (( i < 2 )) + [[ -exec == @(?([0-9])<|?([0-9&])>?(>)|>&)* ]] + (( i++ )) + (( 1 )) + (( i < 2 )) + (( cword <= 0 )) + prev=find + [[ -n '' ]] + return 0 + local i + for i in ${!words[*]} + [[ find == -@(exec|ok)?(dir) ]] + for i in ${!words[*]} + [[ -exec == -@(exec|ok)?(dir) ]] + _command_offset 2 + local word_offset=2 i j + (( i = 0 )) + (( i < word_offset )) + (( j = 0 )) + (( j <= 10 )) + [[ find -exec == \f\i\n\d* ]] + break + COMP_LINE=' -exec' + (( COMP_POINT -= 4 )) + (( i++ )) + (( i < word_offset )) + (( j = 0 )) + (( j <= 6 )) + [[ -exec == \-\e\x\e\c* ]] + COMP_LINE=-exec + (( COMP_POINT-- )) + (( j++ )) + (( j <= 5 )) + [[ -exec == \-\e\x\e\c* ]] + break + COMP_LINE= + (( COMP_POINT -= 5 )) + (( i++ )) + (( i < word_offset )) + (( i = 0 )) + (( i <= COMP_CWORD - word_offset )) + (( i )) + (( i <= COMP_CWORD )) + unset 'COMP_WORDS[i]' + (( i++ )) + (( i <= COMP_CWORD )) + unset 'COMP_WORDS[i]' + (( i++ )) + (( i <= COMP_CWORD )) + (( COMP_CWORD -= word_offset )) + COMPREPLY=() + local cur + _get_comp_words_by_ref cur + local exclude flag i OPTIND=1 + words=() + local cur cword words + upargs=() + upvars=() + local upargs upvars vcur vcword vprev vwords + getopts c:i:n:p:w: flag cur + [[ 1 -ge 1 ]] + case ${!OPTIND} in + vcur=cur + (( OPTIND += 1 )) + [[ 1 -ge 2 ]] + __get_cword_at_cursor_by_ref '' words cword cur + words=() + local cword words + __reassemble_comp_words_by_ref '' words cword + local exclude i j line ref + [[ -n '' ]] + printf -v cword %s -1 + [[ -v exclude ]] + local i cur= index=0 lead= + [[ 0 -gt 0 ]] + local words cword cur + _upvars -a0 words -v cword -1 -v cur '' + (( 8 )) + (( 8 )) + case $1 in + [[ -n 0 ]] + printf %d 0 + [[ -n words ]] + unset -v words + eval 'words=("${@:3:0}")' ++ words=("${@:3:0}") + shift 2 + (( 6 )) + case $1 in + [[ -n cword ]] + unset -v cword + eval 'cword="$3"' ++ cword=-1 + shift 3 + (( 3 )) + case $1 in + [[ -n cur ]] + unset -v cur + eval 'cur="$3"' ++ cur= + shift 3 + (( 0 )) + [[ -v vcur ]] + upvars+=("$vcur") + upargs+=(-v $vcur "$cur") + [[ -v vcword ]] + [[ -v vprev ]] + [[ -v vwords ]] + (( 1 )) + local cur + _upvars -v cur '' + (( 3 )) + (( 3 )) + case $1 in + [[ -n cur ]] + unset -v cur + eval 'cur="$3"' ++ cur= + shift 3 + (( 0 )) + (( COMP_CWORD == 0 )) + local cmd= compcmd= ++ complete -p + local 'cspec=complete -F _longopt mv complete -F _root_command gksudo complete -F _command nice complete -F _longopt tr complete -F _longopt head complete -F _longopt sha256sum complete -F _longopt uniq complete -F _command else complete -F _root_command gksu complete -F _longopt ptx complete -F _longopt mkfifo complete -F _longopt tee complete -F _known_hosts traceroute complete -j -P '\''"%'\'' -S '\''"'\'' fg complete -F _longopt who complete -F _longopt grep complete -F _longopt objdump complete -F _longopt less complete -F _longopt sha1sum complete -F _longopt cut complete -F _longopt mknod complete -F _command padsp complete -F _longopt bison complete -F _command nohup complete -F _longopt od complete -a unalias complete -u groups complete -F _longopt texindex complete -F _known_hosts telnet complete -F _completion_loader -D complete -F _command vsound complete -c which complete -F _longopt m4 complete -F _longopt cp complete -F _longopt base64 complete -F _find find complete -F _longopt strip complete -F _longopt split complete -v readonly complete -o nospace -F _cd cd complete -F _known_hosts showmount complete -F _longopt tac complete -F _longopt fold complete -F _known_hosts mtr complete -F _known_hosts fping complete -F _longopt env complete -F _user_at_host finger complete -c type complete -F _known_hosts ssh-installkeys complete -F _root_command kdesudo complete -F _longopt expand complete -F _longopt ln complete -F _command aoss complete -u w complete -F _longopt ld complete -F _longopt enscript complete -F _longopt irb complete -F _command xargs complete -j -P '\''"%'\'' -S '\''"'\'' jobs complete -F _service service complete -F _longopt tail complete -F _longopt unexpand complete -F _longopt netstat complete -F _longopt ls complete -F _command tsocks complete -F _longopt diff complete -o nospace -F _cd pushd complete -v unset complete -F _longopt csplit complete -F _known_hosts rsh complete -F _command exec complete -F _longopt shar complete -F _longopt vdir complete -F _longopt sum complete -F _longopt nm complete -F _longopt nl complete -F _user_at_host ytalk complete -j -P '\''"%'\'' -S '\''"'\'' disown complete -F _longopt bash complete -u sux complete -F _longopt md5sum complete -A stopped -P '\''"%'\'' -S '\''"'\'' bg complete -F _longopt objcopy complete -F _longopt bc complete -F _longopt paste complete -F _longopt dir complete -b builtin complete -F _longopt a2ps complete -F _root_command really complete -F _longopt shasum complete -F _command ltrace complete -F _known_hosts traceroute6 complete -F _longopt date complete -F _longopt cat complete -F _longopt readelf complete -F _longopt awk complete -F _known_hosts dig complete -F _user_at_host talk complete -F _longopt sha512sum complete -F _longopt seq complete -F _longopt mkdir complete -F _longopt sha224sum complete -A helptopic help complete -F _minimal '\'''\'' complete -F _longopt df complete -F _command eval complete -A setopt set complete -F _longopt chroot complete -F _longopt sort complete -F _command do complete -F _longopt pr complete -F _longopt colordiff complete -F _longopt du complete -F _longopt fmt complete -F _longopt sed complete -F _longopt gperf complete -F _command time complete -F _longopt wc complete -F _root_command fakeroot complete -u slay complete -F _longopt grub complete -F _longopt rmdir complete -A shopt shopt complete -F _known_hosts ftp complete -F _longopt units complete -F _longopt uname complete -F _longopt touch complete -F _longopt ldd complete -F _command then complete -F _known_hosts rlogin complete -F _command command complete -F _longopt sha384sum complete -F _known_hosts fping6 complete -F _longopt rm' + [[ ! -n complete -F _longopt mv complete -F _root_command gksudo complete -F _command nice complete -F _longopt tr complete -F _longopt head complete -F _longopt sha256sum complete -F _longopt uniq complete -F _command else complete -F _root_command gksu complete -F _longopt ptx complete -F _longopt mkfifo complete -F _longopt tee complete -F _known_hosts traceroute complete -j -P '"%' -S '"' fg complete -F _longopt who complete -F _longopt grep complete -F _longopt objdump complete -F _longopt less complete -F _longopt sha1sum complete -F _longopt cut complete -F _longopt mknod complete -F _command padsp complete -F _longopt bison complete -F _command nohup complete -F _longopt od complete -a unalias complete -u groups complete -F _longopt texindex complete -F _known_hosts telnet complete -F _completion_loader -D complete -F _command vsound complete -c which complete -F _longopt m4 complete -F _longopt cp complete -F _longopt base64 complete -F _find find complete -F _longopt strip complete -F _longopt split complete -v readonly complete -o nospace -F _cd cd complete -F _known_hosts showmount complete -F _longopt tac complete -F _longopt fold complete -F _known_hosts mtr complete -F _known_hosts fping complete -F _longopt env complete -F _user_at_host finger complete -c type complete -F _known_hosts ssh-installkeys complete -F _root_command kdesudo complete -F _longopt expand complete -F _longopt ln complete -F _command aoss complete -u w complete -F _longopt ld complete -F _longopt enscript complete -F _longopt irb complete -F _command xargs complete -j -P '"%' -S '"' jobs complete -F _service service complete -F _longopt tail complete -F _longopt unexpand complete -F _longopt netstat complete -F _longopt ls complete -F _command tsocks complete -F _longopt diff complete -o nospace -F _cd pushd complete -v unset complete -F _longopt csplit complete -F _known_hosts rsh complete -F _command exec complete -F _longopt shar complete -F _longopt vdir complete -F _longopt sum complete -F _longopt nm complete -F _longopt nl complete -F _user_at_host ytalk complete -j -P '"%' -S '"' disown complete -F _longopt bash complete -u sux complete -F _longopt md5sum complete -A stopped -P '"%' -S '"' bg complete -F _longopt objcopy complete -F _longopt bc complete -F _longopt paste complete -F _longopt dir complete -b builtin complete -F _longopt a2ps complete -F _root_command really complete -F _longopt shasum complete -F _command ltrace complete -F _known_hosts traceroute6 complete -F _longopt date complete -F _longopt cat complete -F _longopt readelf complete -F _longopt awk complete -F _known_hosts dig complete -F _user_at_host talk complete -F _longopt sha512sum complete -F _longopt seq complete -F _longopt mkdir complete -F _longopt sha224sum complete -A helptopic help complete -F _minimal '' complete -F _longopt df complete -F _command eval complete -A setopt set complete -F _longopt chroot complete -F _longopt sort complete -F _command do complete -F _longopt pr complete -F _longopt colordiff complete -F _longopt du complete -F _longopt fmt complete -F _longopt sed complete -F _longopt gperf complete -F _command time complete -F _longopt wc complete -F _root_command fakeroot complete -u slay complete -F _longopt grub complete -F _longopt rmdir complete -A shopt shopt complete -F _known_hosts ftp complete -F _longopt units complete -F _longopt uname complete -F _longopt touch complete -F _longopt ldd complete -F _command then complete -F _known_hosts rlogin complete -F _command command complete -F _longopt sha384sum complete -F _known_hosts fping6 complete -F _longopt rm ]] + [[ ! -n complete -F _longopt mv complete -F _root_command gksudo complete -F _command nice complete -F _longopt tr complete -F _longopt head complete -F _longopt sha256sum complete -F _longopt uniq complete -F _command else complete -F _root_command gksu complete -F _longopt ptx complete -F _longopt mkfifo complete -F _longopt tee complete -F _known_hosts traceroute complete -j -P '"%' -S '"' fg complete -F _longopt who complete -F _longopt grep complete -F _longopt objdump complete -F _longopt less complete -F _longopt sha1sum complete -F _longopt cut complete -F _longopt mknod complete -F _command padsp complete -F _longopt bison complete -F _command nohup complete -F _longopt od complete -a unalias complete -u groups complete -F _longopt texindex complete -F _known_hosts telnet complete -F _completion_loader -D complete -F _command vsound complete -c which complete -F _longopt m4 complete -F _longopt cp complete -F _longopt base64 complete -F _find find complete -F _longopt strip complete -F _longopt split complete -v readonly complete -o nospace -F _cd cd complete -F _known_hosts showmount complete -F _longopt tac complete -F _longopt fold complete -F _known_hosts mtr complete -F _known_hosts fping complete -F _longopt env complete -F _user_at_host finger complete -c type complete -F _known_hosts ssh-installkeys complete -F _root_command kdesudo complete -F _longopt expand complete -F _longopt ln complete -F _command aoss complete -u w complete -F _longopt ld complete -F _longopt enscript complete -F _longopt irb complete -F _command xargs complete -j -P '"%' -S '"' jobs complete -F _service service complete -F _longopt tail complete -F _longopt unexpand complete -F _longopt netstat complete -F _longopt ls complete -F _command tsocks complete -F _longopt diff complete -o nospace -F _cd pushd complete -v unset complete -F _longopt csplit complete -F _known_hosts rsh complete -F _command exec complete -F _longopt shar complete -F _longopt vdir complete -F _longopt sum complete -F _longopt nm complete -F _longopt nl complete -F _user_at_host ytalk complete -j -P '"%' -S '"' disown complete -F _longopt bash complete -u sux complete -F _longopt md5sum complete -A stopped -P '"%' -S '"' bg complete -F _longopt objcopy complete -F _longopt bc complete -F _longopt paste complete -F _longopt dir complete -b builtin complete -F _longopt a2ps complete -F _root_command really complete -F _longopt shasum complete -F _command ltrace complete -F _known_hosts traceroute6 complete -F _longopt date complete -F _longopt cat complete -F _longopt readelf complete -F _longopt awk complete -F _known_hosts dig complete -F _user_at_host talk complete -F _longopt sha512sum complete -F _longopt seq complete -F _longopt mkdir complete -F _longopt sha224sum complete -A helptopic help complete -F _minimal '' complete -F _longopt df complete -F _command eval complete -A setopt set complete -F _longopt chroot complete -F _longopt sort complete -F _command do complete -F _longopt pr complete -F _longopt colordiff complete -F _longopt du complete -F _longopt fmt complete -F _longopt sed complete -F _longopt gperf complete -F _command time complete -F _longopt wc complete -F _root_command fakeroot complete -u slay complete -F _longopt grub complete -F _longopt rmdir complete -A shopt shopt complete -F _known_hosts ftp complete -F _longopt units complete -F _longopt uname complete -F _longopt touch complete -F _longopt ldd complete -F _command then complete -F _known_hosts rlogin complete -F _command command complete -F _longopt sha384sum complete -F _known_hosts fping6 complete -F _longopt rm ]] + [[ -n complete -F _longopt mv complete -F _root_command gksudo complete -F _command nice complete -F _longopt tr complete -F _longopt head complete -F _longopt sha256sum complete -F _longopt uniq complete -F _command else complete -F _root_command gksu complete -F _longopt ptx complete -F _longopt mkfifo complete -F _longopt tee complete -F _known_hosts traceroute complete -j -P '"%' -S '"' fg complete -F _longopt who complete -F _longopt grep complete -F _longopt objdump complete -F _longopt less complete -F _longopt sha1sum complete -F _longopt cut complete -F _longopt mknod complete -F _command padsp complete -F _longopt bison complete -F _command nohup complete -F _longopt od complete -a unalias complete -u groups complete -F _longopt texindex complete -F _known_hosts telnet complete -F _completion_loader -D complete -F _command vsound complete -c which complete -F _longopt m4 complete -F _longopt cp complete -F _longopt base64 complete -F _find find complete -F _longopt strip complete -F _longopt split complete -v readonly complete -o nospace -F _cd cd complete -F _known_hosts showmount complete -F _longopt tac complete -F _longopt fold complete -F _known_hosts mtr complete -F _known_hosts fping complete -F _longopt env complete -F _user_at_host finger complete -c type complete -F _known_hosts ssh-installkeys complete -F _root_command kdesudo complete -F _longopt expand complete -F _longopt ln complete -F _command aoss complete -u w complete -F _longopt ld complete -F _longopt enscript complete -F _longopt irb complete -F _command xargs complete -j -P '"%' -S '"' jobs complete -F _service service complete -F _longopt tail complete -F _longopt unexpand complete -F _longopt netstat complete -F _longopt ls complete -F _command tsocks complete -F _longopt diff complete -o nospace -F _cd pushd complete -v unset complete -F _longopt csplit complete -F _known_hosts rsh complete -F _command exec complete -F _longopt shar complete -F _longopt vdir complete -F _longopt sum complete -F _longopt nm complete -F _longopt nl complete -F _user_at_host ytalk complete -j -P '"%' -S '"' disown complete -F _longopt bash complete -u sux complete -F _longopt md5sum complete -A stopped -P '"%' -S '"' bg complete -F _longopt objcopy complete -F _longopt bc complete -F _longopt paste complete -F _longopt dir complete -b builtin complete -F _longopt a2ps complete -F _root_command really complete -F _longopt shasum complete -F _command ltrace complete -F _known_hosts traceroute6 complete -F _longopt date complete -F _longopt cat complete -F _longopt readelf complete -F _longopt awk complete -F _known_hosts dig complete -F _user_at_host talk complete -F _longopt sha512sum complete -F _longopt seq complete -F _longopt mkdir complete -F _longopt sha224sum complete -A helptopic help complete -F _minimal '' complete -F _longopt df complete -F _command eval complete -A setopt set complete -F _longopt chroot complete -F _longopt sort complete -F _command do complete -F _longopt pr complete -F _longopt colordiff complete -F _longopt du complete -F _longopt fmt complete -F _longopt sed complete -F _longopt gperf complete -F _command time complete -F _longopt wc complete -F _root_command fakeroot complete -u slay complete -F _longopt grub complete -F _longopt rmdir complete -A shopt shopt complete -F _known_hosts ftp complete -F _longopt units complete -F _longopt uname complete -F _longopt touch complete -F _longopt ldd complete -F _command then complete -F _known_hosts rlogin complete -F _command command complete -F _longopt sha384sum complete -F _known_hosts fping6 complete -F _longopt rm ]] + [[ _longopt mv complete -F _root_command gksudo complete -F _command nice complete -F _longopt tr complete -F _longopt head complete -F _longopt sha256sum complete -F _longopt uniq complete -F _command else complete -F _root_command gksu complete -F _longopt ptx complete -F _longopt mkfifo complete -F _longopt tee complete -F _known_hosts traceroute complete -j -P '"%' -S '"' fg complete -F _longopt who complete -F _longopt grep complete -F _longopt objdump complete -F _longopt less complete -F _longopt sha1sum complete -F _longopt cut complete -F _longopt mknod complete -F _command padsp complete -F _longopt bison complete -F _command nohup complete -F _longopt od complete -a unalias complete -u groups complete -F _longopt texindex complete -F _known_hosts telnet complete -F _completion_loader -D complete -F _command vsound complete -c which complete -F _longopt m4 complete -F _longopt cp complete -F _longopt base64 complete -F _find find complete -F _longopt strip complete -F _longopt split complete -v readonly complete -o nospace -F _cd cd complete -F _known_hosts showmount complete -F _longopt tac complete -F _longopt fold complete -F _known_hosts mtr complete -F _known_hosts fping complete -F _longopt env complete -F _user_at_host finger complete -c type complete -F _known_hosts ssh-installkeys complete -F _root_command kdesudo complete -F _longopt expand complete -F _longopt ln complete -F _command aoss complete -u w complete -F _longopt ld complete -F _longopt enscript complete -F _longopt irb complete -F _command xargs complete -j -P '"%' -S '"' jobs complete -F _service service complete -F _longopt tail complete -F _longopt unexpand complete -F _longopt netstat complete -F _longopt ls complete -F _command tsocks complete -F _longopt diff complete -o nospace -F _cd pushd complete -v unset complete -F _longopt csplit complete -F _known_hosts rsh complete -F _command exec complete -F _longopt shar complete -F _longopt vdir complete -F _longopt sum complete -F _longopt nm complete -F _longopt nl complete -F _user_at_host ytalk complete -j -P '"%' -S '"' disown complete -F _longopt bash complete -u sux complete -F _longopt md5sum complete -A stopped -P '"%' -S '"' bg complete -F _longopt objcopy complete -F _longopt bc complete -F _longopt paste complete -F _longopt dir complete -b builtin complete -F _longopt a2ps complete -F _root_command really complete -F _longopt shasum complete -F _command ltrace complete -F _known_hosts traceroute6 complete -F _longopt date complete -F _longopt cat complete -F _longopt readelf complete -F _longopt awk complete -F _known_hosts dig complete -F _user_at_host talk complete -F _longopt sha512sum complete -F _longopt seq complete -F _longopt mkdir complete -F _longopt sha224sum complete -A helptopic help complete -F _minimal '' complete -F _longopt df complete -F _command eval complete -A setopt set complete -F _longopt chroot complete -F _longopt sort complete -F _command do complete -F _longopt pr complete -F _longopt colordiff complete -F _longopt du complete -F _longopt fmt complete -F _longopt sed complete -F _longopt gperf complete -F _command time complete -F _longopt wc complete -F _root_command fakeroot complete -u slay complete -F _longopt grub complete -F _longopt rmdir complete -A shopt shopt complete -F _known_hosts ftp complete -F _longopt units complete -F _longopt uname complete -F _longopt touch complete -F _longopt ldd complete -F _command then complete -F _known_hosts rlogin complete -F _command command complete -F _longopt sha384sum complete -F _known_hosts fping6 complete -F _longopt rm != \c\o\m\p\l\e\t\e\ \-\F\ \_\l\o\n\g\o\p\t\ \m\v\ \c\o\m\p\l\e\t\e\ \-\F\ \_\r\o\o\t\_\c\o\m\m\a\n\d\ \g\k\s\u\d\o\ \c\o\m\p\l\e\t\e\ \-\F\ \_\c\o\m\m\a\n\d\ \n\i\c\e\ \c\o\m\p\l\e\t\e\ \-\F\ \_\l\o\n\g\o\p\t\ \t\r\ \c\o\m\p\l\e\t\e\ \-\F\ \_\l\o\n\g\o\p\t\ \h\e\a\d\ \c\o\m\p\l\e\t\e\ \-\F\ \_\l\o\n\g\o\p\t\ \s\h\a\2\5\6\s\u\m\ \c\o\m\p\l\e\t\e\ \-\F\ \_\l\o\n\g\o\p\t\ \u\n\i\q\ \c\o\m\p\l\e\t\e\ \-\F\ \_\c\o\m\m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\p\t\ \r\m\d\i\r\ \c\o\m\p\l\e\t\e\ \-\A\ \s\h\o\p\t\ \s\h\o\p\t\ \c\o\m\p\l\e\t\e\ \-\F\ \_\k\n\o\w\n\_\h\o\s\t\s\ \f\t\p\ \c\o\m\p\l\e\t\e\ \-\F\ \_\l\o\n\g\o\p\t\ \u\n\i\t\s\ \c\o\m\p\l\e\t\e\ \-\F\ \_\l\o\n\g\o\p\t\ \u\n\a\m\e\ \c\o\m\p\l\e\t\e\ \-\F\ \_\l\o\n\g\o\p\t\ \t\o\u\c\h\ \c\o\m\p\l\e\t\e\ \-\F\ \_\l\o\n\g\o\p\t\ \l\d\d\ \c\o\m\p\l\e\t\e\ \-\F\ \_\c\o\m\m\a\n\d\ \t\h\e\n\ \c\o\m\p\l\e\t\e\ \-\F\ \_\k\n\o\w\n\_\h\o\s\t\s\ \r\l\o\g\i\n\ \c\o\m\p\l\e\t\e\ \-\F\ \_\c\o\m\m\a\n\d\ \c\o\m\m\a\n\d\ \c\o\m\p\l\e\t\e\ \-\F\ \_\l\o\n\g\o\p\t\ \s\h\a\3\8\4\s\u\m\ \c\o\m\p\l\e\t\e\ \-\F\ \_\k\n\o\w\n\_\h\o\s\t\s\ \f\p\i\n\g\6\ \c\o\m\p\l\e\t\e\ \-\F\ \_\l\o\n\g\o\p\t\ \r\m ]] + local 'func=_longopt mv complete -F _root_command gksudo complete -F _command nice complete -F _longopt tr complete -F _longopt head complete -F _longopt sha256sum complete -F _longopt uniq complete -F _command else complete -F _root_command gksu complete -F _longopt ptx complete -F _longopt mkfifo complete -F _longopt tee complete -F _known_hosts traceroute complete -j -P '\''"%'\'' -S '\''"'\'' fg complete -F _longopt who complete -F _longopt grep complete -F _longopt objdump complete -F _longopt less complete -F _longopt sha1sum complete -F _longopt cut complete -F _longopt mknod complete -F _command padsp complete -F _longopt bison complete -F _command nohup complete -F _longopt od complete -a unalias complete -u groups complete -F _longopt texindex complete -F _known_hosts telnet complete -F _completion_loader -D complete -F _command vsound complete -c which complete -F _longopt m4 complete -F _longopt cp complete -F _longopt base64 complete -F _find find complete -F _longopt strip complete -F _longopt split complete -v readonly complete -o nospace -F _cd cd complete -F _known_hosts showmount complete -F _longopt tac complete -F _longopt fold complete -F _known_hosts mtr complete -F _known_hosts fping complete -F _longopt env complete -F _user_at_host finger complete -c type complete -F _known_hosts ssh-installkeys complete -F _root_command kdesudo complete -F _longopt expand complete -F _longopt ln complete -F _command aoss complete -u w complete -F _longopt ld complete -F _longopt enscript complete -F _longopt irb complete -F _command xargs complete -j -P '\''"%'\'' -S '\''"'\'' jobs complete -F _service service complete -F _longopt tail complete -F _longopt unexpand complete -F _longopt netstat complete -F _longopt ls complete -F _command tsocks complete -F _longopt diff complete -o nospace -F _cd pushd complete -v unset complete -F _longopt csplit complete -F _known_hosts rsh complete -F _command exec complete -F _longopt shar complete -F _longopt vdir complete -F _longopt sum complete -F _longopt nm complete -F _longopt nl complete -F _user_at_host ytalk complete -j -P '\''"%'\'' -S '\''"'\'' disown complete -F _longopt bash complete -u sux complete -F _longopt md5sum complete -A stopped -P '\''"%'\'' -S '\''"'\'' bg complete -F _longopt objcopy complete -F _longopt bc complete -F _longopt paste complete -F _longopt dir complete -b builtin complete -F _longopt a2ps complete -F _root_command really complete -F _longopt shasum complete -F _command ltrace complete -F _known_hosts traceroute6 complete -F _longopt date complete -F _longopt cat complete -F _longopt readelf complete -F _longopt awk complete -F _known_hosts dig complete -F _user_at_host talk complete -F _longopt sha512sum complete -F _longopt seq complete -F _longopt mkdir complete -F _longopt sha224sum complete -A helptopic help complete -F _minimal '\'''\'' complete -F _longopt df complete -F _command eval complete -A setopt set complete -F _longopt chroot complete -F _longopt sort complete -F _command do complete -F _longopt pr complete -F _longopt colordiff complete -F _longopt du complete -F _longopt fmt complete -F _longopt sed complete -F _longopt gperf complete -F _command time complete -F _longopt wc complete -F _root_command fakeroot complete -u slay complete -F _longopt grub complete -F _longopt rmdir complete -A shopt shopt complete -F _known_hosts ftp complete -F _longopt units complete -F _longopt uname complete -F _longopt touch complete -F _longopt ldd complete -F _command then complete -F _known_hosts rlogin complete -F _command command complete -F _longopt sha384sum complete -F _known_hosts fping6 complete -F _longopt rm' + func=_longopt + (( 0 >= 2 )) bash: COMP_WORDS: bad array subscript + _longopt '' + local cur prev words cword split + _init_completion -s + local exclude= flag outx errx inx OPTIND=1 + getopts n:e:o:i:s flag -s + case $flag in + split=false + exclude+== + getopts n:e:o:i:s flag -s + COMPREPLY=() + local 'redir=@(?([0-9])<|?([0-9&])>?(>)|>&)' + _get_comp_words_by_ref -n '=<>&' cur prev words cword + local exclude flag i OPTIND=1 + words=() + local cur cword words + upargs=() + upvars=() + local upargs upvars vcur vcword vprev vwords + getopts c:i:n:p:w: flag -n '=<>&' cur prev words cword + case $flag in + exclude='=<>&' + getopts c:i:n:p:w: flag -n '=<>&' cur prev words cword + [[ 6 -ge 3 ]] + case ${!OPTIND} in + vcur=cur + (( OPTIND += 1 )) + [[ 6 -ge 4 ]] + case ${!OPTIND} in + vprev=prev + (( OPTIND += 1 )) + [[ 6 -ge 5 ]] + case ${!OPTIND} in + vwords=words + (( OPTIND += 1 )) + [[ 6 -ge 6 ]] + case ${!OPTIND} in + vcword=cword + (( OPTIND += 1 )) + [[ 6 -ge 7 ]] + __get_cword_at_cursor_by_ref '=<>&' words cword cur + words=() + local cword words + __reassemble_comp_words_by_ref '=<>&' words cword + local exclude i j line ref + [[ -n =<>& ]] + exclude='[=<>&]' + printf -v cword %s -1 + [[ -v exclude ]] + line= + (( i = 0, j = 0 )) + (( i < 0 )) + (( i == COMP_CWORD )) + local i cur= index=0 lead= + [[ 0 -gt 0 ]] + local words cword cur + _upvars -a0 words -v cword -1 -v cur '' + (( 8 )) + (( 8 )) + case $1 in + [[ -n 0 ]] + printf %d 0 + [[ -n words ]] + unset -v words + eval 'words=("${@:3:0}")' ++ words=("${@:3:0}") + shift 2 + (( 6 )) + case $1 in + [[ -n cword ]] + unset -v cword + eval 'cword="$3"' ++ cword=-1 + shift 3 + (( 3 )) + case $1 in + [[ -n cur ]] + unset -v cur + eval 'cur="$3"' ++ cur= + shift 3 + (( 0 )) + [[ -v vcur ]] + upvars+=("$vcur") + upargs+=(-v $vcur "$cur") + [[ -v vcword ]] + upvars+=("$vcword") + upargs+=(-v $vcword "$cword") + [[ -v vprev ]] + [[ -1 -ge 1 ]] + [[ -v vwords ]] + upvars+=("$vwords") + upargs+=(-a${#words[@]} $vwords ${words+"${words[@]}"}) + (( 3 )) + local cur cword words + _upvars -v cur '' -v cword -1 -a0 words + (( 8 )) + (( 8 )) + case $1 in + [[ -n cur ]] + unset -v cur + eval 'cur="$3"' ++ cur= + shift 3 + (( 5 )) + case $1 in + [[ -n cword ]] + unset -v cword + eval 'cword="$3"' ++ cword=-1 + shift 3 + (( 2 )) + case $1 in + [[ -n 0 ]] + printf %d 0 + [[ -n words ]] + unset -v words + eval 'words=("${@:3:0}")' ++ words=("${@:3:0}") + shift 2 + (( 0 )) + _variables + [[ '' =~ ^(\$(\{[!#]?)?)([A-Za-z0-9_]*)$ ]] + [[ '' =~ ^(\$\{[#!]?)([A-Za-z0-9_]*)\[([^]]*)$ ]] + [[ '' =~ ^\$\{[#!]?[A-Za-z0-9_]*\[.*]$ ]] + case ${prev-} in + return 1 + [[ '' == @(?([0-9])<|?([0-9&])>?(>)|>&)* ]] + [[ '' == @(?([0-9])<|?([0-9&])>?(>)|>&) ]] + local i skip + (( i = 1 )) + (( i < 0 )) + (( cword <= 0 )) + return 1 + return + local opt + [[ complete -F _longopt mv complete -F _root_command gksudo complete -F _command nice complete -F _longopt tr complete -F _longopt head complete -F _longopt sha256sum complete -F _longopt uniq complete -F _command else complete -F _root_command gksu complete -F _longopt ptx complete -F _longopt mkfifo complete -F _longopt tee complete -F _known_hosts traceroute complete -j -P '"%' -S '"' fg complete -F _longopt who complete -F _longopt grep complete -F _longopt objdump complete -F _longopt less complete -F _longopt sha1sum complete -F _longopt cut complete -F _longopt mknod complete -F _command padsp complete -F _longopt bison complete -F _command nohup complete -F _longopt od complete -a unalias complete -u groups complete -F _longopt texindex complete -F _known_hosts telnet complete -F _completion_loader -D complete -F _command vsound complete -c which complete -F _longopt m4 complete -F _longopt cp complete -F _longopt base64 complete -F _find find complete -F _longopt strip complete -F _longopt split complete -v readonly complete -o nospace -F _cd cd complete -F _known_hosts showmount complete -F _longopt tac complete -F _longopt fold complete -F _known_hosts mtr complete -F _known_hosts fping complete -F _longopt env complete -F _user_at_host finger complete -c type complete -F _known_hosts ssh-installkeys complete -F _root_command kdesudo complete -F _longopt expand complete -F _longopt ln complete -F _command aoss complete -u w complete -F _longopt ld complete -F _longopt enscript complete -F _longopt irb complete -F _command xargs complete -j -P '"%' -S '"' jobs complete -F _service service complete -F _longopt tail complete -F _longopt unexpand complete -F _longopt netstat complete -F _longopt ls complete -F _command tsocks complete -F _longopt diff complete -o nospace -F _cd pushd complete -v unset complete -F _longopt csplit complete -F _known_hosts rsh complete -F _command exec complete -F _longopt shar complete -F _longopt vdir complete -F _longopt sum complete -F _longopt nm complete -F _longopt nl complete -F _user_at_host ytalk complete -j -P '"%' -S '"' disown complete -F _longopt bash complete -u sux complete -F _longopt md5sum complete -A stopped -P '"%' -S '"' bg complete -F _longopt objcopy complete -F _longopt bc complete -F _longopt paste complete -F _longopt dir complete -b builtin complete -F _longopt a2ps complete -F _root_command really complete -F _longopt shasum complete -F _command ltrace complete -F _known_hosts traceroute6 complete -F _longopt date complete -F _longopt cat complete -F _longopt readelf complete -F _longopt awk complete -F _known_hosts dig complete -F _user_at_host talk complete -F _longopt sha512sum complete -F _longopt seq complete -F _longopt mkdir complete -F _longopt sha224sum complete -A helptopic help complete -F _minimal '' complete -F _longopt df complete -F _command eval complete -A setopt set complete -F _longopt chroot complete -F _longopt sort complete -F _command do complete -F _longopt pr complete -F _longopt colordiff complete -F _longopt du complete -F _longopt fmt complete -F _longopt sed complete -F _longopt gperf complete -F _command time complete -F _longopt wc complete -F _root_command fakeroot complete -u slay complete -F _longopt grub complete -F _longopt rmdir complete -A shopt shopt complete -F _known_hosts ftp complete -F _longopt units complete -F _longopt uname complete -F _longopt touch complete -F _longopt ldd complete -F _command then complete -F _known_hosts rlogin complete -F _command command complete -F _longopt sha384sum complete -F _known_hosts fping6 complete -F _longopt rm == *\ \-\o\ * ]] + cspec='nospace -F _cd cd complete -F _known_hosts showmount complete -F _longopt tac complete -F _longopt fold complete -F _known_hosts mtr complete -F _known_hosts fping complete -F _longopt env complete -F _user_at_host finger complete -c type complete -F _known_hosts ssh-installkeys complete -F _root_command kdesudo complete -F _longopt expand complete -F _longopt ln complete -F _command aoss complete -u w complete -F _longopt ld complete -F _longopt enscript complete -F _longopt irb complete -F _command xargs complete -j -P '\''"%'\'' -S '\''"'\'' jobs complete -F _service service complete -F _longopt tail complete -F _longopt unexpand complete -F _longopt netstat complete -F _longopt ls complete -F _command tsocks complete -F _longopt diff complete -o nospace -F _cd pushd complete -v unset complete -F _longopt csplit complete -F _known_hosts rsh complete -F _command exec complete -F _longopt shar complete -F _longopt vdir complete -F _longopt sum complete -F _longopt nm complete -F _longopt nl complete -F _user_at_host ytalk complete -j -P '\''"%'\'' -S '\''"'\'' disown complete -F _longopt bash complete -u sux complete -F _longopt md5sum complete -A stopped -P '\''"%'\'' -S '\''"'\'' bg complete -F _longopt objcopy complete -F _longopt bc complete -F _longopt paste complete -F _longopt dir complete -b builtin complete -F _longopt a2ps complete -F _root_command really complete -F _longopt shasum complete -F _command ltrace complete -F _known_hosts traceroute6 complete -F _longopt date complete -F _longopt cat complete -F _longopt readelf complete -F _longopt awk complete -F _known_hosts dig complete -F _user_at_host talk complete -F _longopt sha512sum complete -F _longopt seq complete -F _longopt mkdir complete -F _longopt sha224sum complete -A helptopic help complete -F _minimal '\'''\'' complete -F _longopt df complete -F _command eval complete -A setopt set complete -F _longopt chroot complete -F _longopt sort complete -F _command do complete -F _longopt pr complete -F _longopt colordiff complete -F _longopt du complete -F _longopt fmt complete -F _longopt sed complete -F _longopt gperf complete -F _command time complete -F _longopt wc complete -F _root_command fakeroot complete -u slay complete -F _longopt grub complete -F _longopt rmdir complete -A shopt shopt complete -F _known_hosts ftp complete -F _longopt units complete -F _longopt uname complete -F _longopt touch complete -F _longopt ldd complete -F _command then complete -F _known_hosts rlogin complete -F _command command complete -F _longopt sha384sum complete -F _known_hosts fping6 complete -F _longopt rm' + opt=nospace + compopt -o nospace + cspec=' -F _cd cd complete -F _known_hosts showmount complete -F _longopt tac complete -F _longopt fold complete -F _known_hosts mtr complete -F _known_hosts fping complete -F _longopt env complete -F _user_at_host finger complete -c type complete -F _known_hosts ssh-installkeys complete -F _root_command kdesudo complete -F _longopt expand complete -F _longopt ln complete -F _command aoss complete -u w complete -F _longopt ld complete -F _longopt enscript complete -F _longopt irb complete -F _command xargs complete -j -P '\''"%'\'' -S '\''"'\'' jobs complete -F _service service complete -F _longopt tail complete -F _longopt unexpand complete -F _longopt netstat complete -F _longopt ls complete -F _command tsocks complete -F _longopt diff complete -o nospace -F _cd pushd complete -v unset complete -F _longopt csplit complete -F _known_hosts rsh complete -F _command exec complete -F _longopt shar complete -F _longopt vdir complete -F _longopt sum complete -F _longopt nm complete -F _longopt nl complete -F _user_at_host ytalk complete -j -P '\''"%'\'' -S '\''"'\'' disown complete -F _longopt bash complete -u sux complete -F _longopt md5sum complete -A stopped -P '\''"%'\'' -S '\''"'\'' bg complete -F _longopt objcopy complete -F _longopt bc complete -F _longopt paste complete -F _longopt dir complete -b builtin complete -F _longopt a2ps complete -F _root_command really complete -F _longopt shasum complete -F _command ltrace complete -F _known_hosts traceroute6 complete -F _longopt date complete -F _longopt cat complete -F _longopt readelf complete -F _longopt awk complete -F _known_hosts dig complete -F _user_at_host talk complete -F _longopt sha512sum complete -F _longopt seq complete -F _longopt mkdir complete -F _longopt sha224sum complete -A helptopic help complete -F _minimal '\'''\'' complete -F _longopt df complete -F _command eval complete -A setopt set complete -F _longopt chroot complete -F _longopt sort complete -F _command do complete -F _longopt pr complete -F _longopt colordiff complete -F _longopt du complete -F _longopt fmt complete -F _longopt sed complete -F _longopt gperf complete -F _command time complete -F _longopt wc complete -F _root_command fakeroot complete -u slay complete -F _longopt grub complete -F _longopt rmdir complete -A shopt shopt complete -F _known_hosts ftp complete -F _longopt units complete -F _longopt uname complete -F _longopt touch complete -F _longopt ldd complete -F _command then complete -F _known_hosts rlogin complete -F _command command complete -F _longopt sha384sum complete -F _known_hosts fping6 complete -F _longopt rm' + [[ -F _cd cd complete -F _known_hosts showmount complete -F _longopt tac complete -F _longopt fold complete -F _known_hosts mtr complete -F _known_hosts fping complete -F _longopt env complete -F _user_at_host finger complete -c type complete -F _known_hosts ssh-installkeys complete -F _root_command kdesudo complete -F _longopt expand complete -F _longopt ln complete -F _command aoss complete -u w complete -F _longopt ld complete -F _longopt enscript complete -F _longopt irb complete -F _command xargs complete -j -P '"%' -S '"' jobs complete -F _service service complete -F _longopt tail complete -F _longopt unexpand complete -F _longopt netstat complete -F _longopt ls complete -F _command tsocks complete -F _longopt diff complete -o nospace -F _cd pushd complete -v unset complete -F _longopt csplit complete -F _known_hosts rsh complete -F _command exec complete -F _longopt shar complete -F _longopt vdir complete -F _longopt sum complete -F _longopt nm complete -F _longopt nl complete -F _user_at_host ytalk complete -j -P '"%' -S '"' disown complete -F _longopt bash complete -u sux complete -F _longopt md5sum complete -A stopped -P '"%' -S '"' bg complete -F _longopt objcopy complete -F _longopt bc complete -F _longopt paste complete -F _longopt dir complete -b builtin complete -F _longopt a2ps complete -F _root_command really complete -F _longopt shasum complete -F _command ltrace complete -F _known_hosts traceroute6 complete -F _longopt date complete -F _longopt cat complete -F _longopt readelf complete -F _longopt awk complete -F _known_hosts dig complete -F _user_at_host talk complete -F _longopt sha512sum complete -F _longopt seq complete -F _longopt mkdir complete -F _longopt sha224sum complete -A helptopic help complete -F _minimal '' complete -F _longopt df complete -F _command eval complete -A setopt set complete -F _longopt chroot complete -F _longopt sort complete -F _command do complete -F _longopt pr complete -F _longopt colordiff complete -F _longopt du complete -F _longopt fmt complete -F _longopt sed complete -F _longopt gperf complete -F _command time complete -F _longopt wc complete -F _root_command fakeroot complete -u slay complete -F _longopt grub complete -F _longopt rmdir complete -A shopt shopt complete -F _known_hosts ftp complete -F _longopt units complete -F _longopt uname complete -F _longopt touch complete -F _longopt ldd complete -F _command then complete -F _known_hosts rlogin complete -F _command command complete -F _longopt sha384sum complete -F _known_hosts fping6 complete -F _longopt rm == *\ \-\o\ * ]] + cspec='nospace -F _cd pushd complete -v unset complete -F _longopt csplit complete -F _known_hosts rsh complete -F _command exec complete -F _longopt shar complete -F _longopt vdir complete -F _longopt sum complete -F _longopt nm complete -F _longopt nl complete -F _user_at_host ytalk complete -j -P '\''"%'\'' -S '\''"'\'' disown complete -F _longopt bash complete -u sux complete -F _longopt md5sum complete -A stopped -P '\''"%'\'' -S '\''"'\'' bg complete -F _longopt objcopy complete -F _longopt bc complete -F _longopt paste complete -F _longopt dir complete -b builtin complete -F _longopt a2ps complete -F _root_command really complete -F _longopt shasum complete -F _command ltrace complete -F _known_hosts traceroute6 complete -F _longopt date complete -F _longopt cat complete -F _longopt readelf complete -F _longopt awk complete -F _known_hosts dig complete -F _user_at_host talk complete -F _longopt sha512sum complete -F _longopt seq complete -F _longopt mkdir complete -F _longopt sha224sum complete -A helptopic help complete -F _minimal '\'''\'' complete -F _longopt df complete -F _command eval complete -A setopt set complete -F _longopt chroot complete -F _longopt sort complete -F _command do complete -F _longopt pr complete -F _longopt colordiff complete -F _longopt du complete -F _longopt fmt complete -F _longopt sed complete -F _longopt gperf complete -F _command time complete -F _longopt wc complete -F _root_command fakeroot complete -u slay complete -F _longopt grub complete -F _longopt rmdir complete -A shopt shopt complete -F _known_hosts ftp complete -F _longopt units complete -F _longopt uname complete -F _longopt touch complete -F _longopt ldd complete -F _command then complete -F _known_hosts rlogin complete -F _command command complete -F _longopt sha384sum complete -F _known_hosts fping6 complete -F _longopt rm' + opt=nospace + compopt -o nospace + cspec=' -F _cd pushd complete -v unset complete -F _longopt csplit complete -F _known_hosts rsh complete -F _command exec complete -F _longopt shar complete -F _longopt vdir complete -F _longopt sum complete -F _longopt nm complete -F _longopt nl complete -F _user_at_host ytalk complete -j -P '\''"%'\'' -S '\''"'\'' disown complete -F _longopt bash complete -u sux complete -F _longopt md5sum complete -A stopped -P '\''"%'\'' -S '\''"'\'' bg complete -F _longopt objcopy complete -F _longopt bc complete -F _longopt paste complete -F _longopt dir complete -b builtin complete -F _longopt a2ps complete -F _root_command really complete -F _longopt shasum complete -F _command ltrace complete -F _known_hosts traceroute6 complete -F _longopt date complete -F _longopt cat complete -F _longopt readelf complete -F _longopt awk complete -F _known_hosts dig complete -F _user_at_host talk complete -F _longopt sha512sum complete -F _longopt seq complete -F _longopt mkdir complete -F _longopt sha224sum complete -A helptopic help complete -F _minimal '\'''\'' complete -F _longopt df complete -F _command eval complete -A setopt set complete -F _longopt chroot complete -F _longopt sort complete -F _command do complete -F _longopt pr complete -F _longopt colordiff complete -F _longopt du complete -F _longopt fmt complete -F _longopt sed complete -F _longopt gperf complete -F _command time complete -F _longopt wc complete -F _root_command fakeroot complete -u slay complete -F _longopt grub complete -F _longopt rmdir complete -A shopt shopt complete -F _known_hosts ftp complete -F _longopt units complete -F _longopt uname complete -F _longopt touch complete -F _longopt ldd complete -F _command then complete -F _known_hosts rlogin complete -F _command command complete -F _longopt sha384sum complete -F _known_hosts fping6 complete -F _longopt rm' + [[ -F _cd pushd complete -v unset complete -F _longopt csplit complete -F _known_hosts rsh complete -F _command exec complete -F _longopt shar complete -F _longopt vdir complete -F _longopt sum complete -F _longopt nm complete -F _longopt nl complete -F _user_at_host ytalk complete -j -P '"%' -S '"' disown complete -F _longopt bash complete -u sux complete -F _longopt md5sum complete -A stopped -P '"%' -S '"' bg complete -F _longopt objcopy complete -F _longopt bc complete -F _longopt paste complete -F _longopt dir complete -b builtin complete -F _longopt a2ps complete -F _root_command really complete -F _longopt shasum complete -F _command ltrace complete -F _known_hosts traceroute6 complete -F _longopt date complete -F _longopt cat complete -F _longopt readelf complete -F _longopt awk complete -F _known_hosts dig complete -F _user_at_host talk complete -F _longopt sha512sum complete -F _longopt seq complete -F _longopt mkdir complete -F _longopt sha224sum complete -A helptopic help complete -F _minimal '' complete -F _longopt df complete -F _command eval complete -A setopt set complete -F _longopt chroot complete -F _longopt sort complete -F _command do complete -F _longopt pr complete -F _longopt colordiff complete -F _longopt du complete -F _longopt fmt complete -F _longopt sed complete -F _longopt gperf complete -F _command time complete -F _longopt wc complete -F _root_command fakeroot complete -u slay complete -F _longopt grub complete -F _longopt rmdir complete -A shopt shopt complete -F _known_hosts ftp complete -F _longopt units complete -F _longopt uname complete -F _longopt touch complete -F _longopt ldd complete -F _command then complete -F _known_hosts rlogin complete -F _command command complete -F _longopt sha384sum complete -F _known_hosts fping6 complete -F _longopt rm == *\ \-\o\ * ]] + return
Could you try out with the latest bash_completion from the master branch here? There have been related fixes since 2.11.
bash_completion
This issue appears to be fixed in the master branch.
Describe the bug
Trying to complete
find -exec
outputsTo reproduce
find -exec
Expected behavior
Show possible values for the
-exec
flagVersions (please complete the following information)
echo "$BASH_VERSION"
: 5.1.16(1)-release(IFS=.; echo "${BASH_COMPLETION_VERSINFO[*]}")
: 2.11Additional context
N/A
Debug trace