Comment 8 for bug 194419

Revision history for this message
adw (adw) wrote : Re: improper quoting in bash completion script

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...