Auto-completion in Bash
Since my update to natty, the autocompletion behaviour of bash has changed. Here's an example (I use underscore _ here to show where the cursor is - there is no underscore in the actual file names.)
user@machine:~$ ls MyF_<TAB>
completes to:
user@machine:~$ ls MyFolder _
with a space behind the folder name instead of a slash. Actually I was expecting it to go like:
user@machine:~$ ls MyF_<TAB>
user@machine:~$ ls MyFolder/_<TAB>
MyFolder/
MyFolder/
Another annoyance is the handling of spaces.
user@machine:~$ ls -1_<ENTER>
My Folder With Spaces
user@machine:~$ ls My_<TAB>
user@machine:~$ ls My Folder With Spaces _
user@machine:~$ ls My\ _<TAB>
user@machine:~$ ls My Folder With Spaces _
user@machine:~$ ls "My _<TAB>
user@machine:~$ ls My Folder With Spaces _
This is really annoying. Deleting the .bashrc didn't help, I didn't find anything related in it anyway. Thanks for any help. This occurs only with some commands: cd seems to work fine, but cat or rm show the same behaviour.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Johann Philipp Strathausen for more information if necessary.