Bash: get comp words by ref: command not found

Jmnote bot (토론 | 기여)님의 2020년 11월 2일 (월) 02:40 판 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight))
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

root@localhost:~# kubectl get deplbash: _get_comp_words_by_ref: command not found
bash: _get_comp_words_by_ref: command not found
bash: _get_comp_words_by_ref: command not found
^C
root@localhost:~# type -t _get_comp_words_by_ref
root@localhost:~# complete -p
root@localhost:~# rpm -qa bash-completion
bash-completion-2.1-6.el7.noarch
root@localhost:~# rpm -ql bash-completion | xargs grep -Hn _get_comp_words_by_ref 2>/dev/null
/usr/share/bash-completion/bash_completion:351:# Usage: _get_comp_words_by_ref [OPTIONS] [VARNAMES]
/usr/share/bash-completion/bash_completion:370:#    $ _get_comp_words_by_ref -n : cur prev
/usr/share/bash-completion/bash_completion:372:_get_comp_words_by_ref()
/usr/share/bash-completion/bash_completion:425:# @deprecated  Use `_get_comp_words_by_ref cur' instead
/usr/share/bash-completion/bash_completion:426:# @see _get_comp_words_by_ref()
/usr/share/bash-completion/bash_completion:480:# @deprecated  Use `_get_comp_words_by_ref cur prev' instead
/usr/share/bash-completion/bash_completion:481:# @see _get_comp_words_by_ref()
/usr/share/bash-completion/bash_completion:641:#     -n EXCLUDE  Passed to _get_comp_words_by_ref -n with redirection chars
/usr/share/bash-completion/bash_completion:671:    _get_comp_words_by_ref -n "$exclude<>&" cur prev words cword
/usr/share/bash-completion/bash_completion:1673:    _get_comp_words_by_ref cur
/usr/share/doc/bash-completion-2.1/CHANGES:645:  * Added _get_comp_words_by_ref to replace both _get_cword & _get_pword.
root@localhost:~# rpm -ql bash-completion | grep ^/etc
/etc/bash_completion.d
/etc/bash_completion.d/redefine_filedir
/etc/profile.d/bash_completion.sh
root@localhost:~# rpm -ql bash-completion | xargs grep -Hn /usr/share/bash-completion/bash_completion 2>/dev/null
/etc/profile.d/bash_completion.sh:9:    if shopt -q progcomp && [ -r /usr/share/bash-completion/bash_completion ]; then
/etc/profile.d/bash_completion.sh:11:        . /usr/share/bash-completion/bash_completion
/usr/share/doc/bash-completion-2.1/README:11:[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
/usr/share/doc/bash-completion-2.1/README:12:    . /usr/share/bash-completion/bash_completion
root@localhost:~# cat /etc/profile.d/bash_completion.sh
# Check for interactive bash and that we haven't already been syntaxhighlightd.
[ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$BASH_COMPLETION_COMPAT_DIR" ] && return

# Check for recent enough version of bash.
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
if [ $bmajor -gt 4 ] || [ $bmajor -eq 4 -a $bminor -ge 1 ]; then
    [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] && \
        . "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion"
    if shopt -q progcomp && [ -r /usr/share/bash-completion/bash_completion ]; then
        # Source completion code.
        . /usr/share/bash-completion/bash_completion
    fi
fi
unset bash bmajor bminor
root@localhost:~# set | grep COMPLETION
root@localhost:~#

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}