Broken auto-completion in bash

Bug #789153 reported by Johann Philipp Strathausen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: bash-completion

The autocompletion behaviour of bash is strange when I install a fresh Ubuntu with an encrypted home directory. Here's an example (I use underscore _ here to show where the cursor is - there is NO underscore in the actual file names in these examples.)

    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/myInterestingFolder
    MyFolder/anotherFile.txt

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, ls or rm show the same behaviour.

Revision history for this message
Johann Philipp Strathausen (strathausen) wrote :
summary: - Broken auto-completion in bash when home-directory is encrypted
+ Broken auto-completion in bash
Revision history for this message
Johann Philipp Strathausen (strathausen) wrote :

I'm not even sure anymore it is related to the encrypted directory thing at all (although I've noticed bash behaving completion differently on mounted directories). Tried it with a differend user with an unencrypted home, same problems.

The steps I did to get here:

1. install fresh Ubuntu Natty 64bit
2. install some packages I usually use (see attachment #1)

So, my work-around is to use zsh instead, and I like it so much I don't think I'll use bash anymore. But I am still curious about this bug, any hint on this is appreciated.

Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 769866, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

Changed in bash-completion (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.