Ok, I managed to reproduce the rm problem. In fact, this seems to affect
all file autocompletes:

mkdir test
cd test
touch [a]
touch a
ls <TAB>

Should: do nothing, list both files as completion options on a second <TAB>
Instead: autocompletes to a

(Again, it breaks autocomplete with failglob even without the a file.)

The problem is caused by the _filedir() function in
/etc/bash_completion. There are a couple of lines which temporarily
disable globbing, but they are commented out. Uncommenting them fixes
the issue for me, and seems to have no ill effects, but I'm sure someone
commented them out for a reason...

-- 
improper quoting in bash completion script
https://bugs.launchpad.net/bugs/194419
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to