I'm running Ubuntu 12.04.
If I try to auto-complete to delete a directory with spaces in the name, it doesn't work.
Say my directory is called "some spacey directory". If I type
rm -r some and hit tab, nothing more autocompletes. So then I type a bit more, say
rm -r some\ s. Now if I hit tab, it autocompletes but removes the
\ characters giving
rm -r some spacey directory. This, however, won't delete some spacey directory. So that's inconvenient.
But when this is a real nightmare: If you have two directories, say "basic" and "basic with an added feature" and execute
rm -r basic with an added feature you end up deleting basic.
My question: Is there any reason autocomplete has that behaviour? Is there anyway I can get rid of it? This seems like dangerous behaviour in the context of a permanent delete command.