« July 2011»
M T W T F S S
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

[blog...]

22.07.2011
16:07

Bash Commandline Completion - Bugfix for Ubuntu 11.04

Bash completion is action

Since my update to Ubuntu 11.04 I missed a very, very useful and important feature for people like me, working most of the time on the console.

 

I don't care which window-manager-system-style I'm using. GNOME, KDE, LXDE or whatever as long as the terminal is starting fast.

 

In Ubuntu 11.04 is a bug with the bash_completion. This helps you completing the filenames with the TAB-key. Especially with filenames and directories with spaces or German "Umlaute".

Right now, I spent half an hour to google for a solution and it's so simple. There is only an error in /etc/bash_completion (line 1587):

 

# makeinfo and texi2dvi are defined elsewhere. 
for i in a2ps awk bash bc bison cat colordiff cp csplit \
curl cut date df diff dir du enscript env expand fmt fold gperf gprof \
grep grub head indent irb ld ldd less ln ls m4 md5sum mkdir mkfifo mknod \
mv netstat nl nm objcopy objdump od paste patch pr ptx readelf rm rmdir \
sed seq sha{,1,224,256,384,512}sum shar sort split strip tac tail tee \
texindex touch tr uname unexpand uniq units vdir wc wget who; do
have $i && complete -F _longopt -o filenames $i
done

 

This bug has been discussed on the bugtracker at launchpad:

https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/769866

[ 26.02.2013 ]