[Solved]Warning: bash-completion 1.99-1 is broken

Started by michaaa62, 2012/01/08, 20:08:10

Previous topic - Next topic

nadir

for i in $(ls /usr/share/bash-completion/completions/*)
The usage of the command 'ls' is superfluous.
http://mywiki.wooledge.org/BashPitfalls#for_i_in_.24.28ls_.2A.mp3.29

towo

The easyest way would be edit /etc/bash.bashrc and ~/.bashrc to the following:
# enable bash completion in interactive shells
if [ -f /usr/share/bash-completion/bash_completion ] && ! shopt -oq posix; then
   . /usr/share/bash-completion/bash_completion
fi
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.