"Bash: get comp words by ref: command not found"의 두 판 사이의 차이

29번째 줄: 29번째 줄:
/etc/bash_completion.d/redefine_filedir
/etc/bash_completion.d/redefine_filedir
/etc/profile.d/bash_completion.sh
/etc/profile.d/bash_completion.sh
</source>
<source lang='console'>
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
</source>
</source>
<source lang='console'>
<source lang='console'>

2019년 6월 21일 (금) 13:49 판

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:~# 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 | grep COMPLETION
[ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$BASH_COMPLETION_COMPAT_DIR" ] && return
root@localhost:~# set | grep COMPLETION
root@localhost:~# cat ~/.bash_profile
cat: /root/.bash_profile: No such file or directory

2 같이 보기

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