0

I installed the new version of Ubuntu-12, and found a very strange auto-completion behavior.

For instance, I have a folder tree something like ~/A/B/C.eps

and open a terminal, under folder A, when I type 'display', and then double click tab key, and it used to be

~/A: display [double-tab]

~/A: display B/

But now it is

~/A: display B[a space here]

A space is followed up, not a forward slash.

This is very annoying, because, in the former case, I can double-tab again to enter display B/C.eps, which is very convenient, but now, I cant.

Could anyone help me with this?

Thanks

2
  • So auto-complete is adding a space, not a trailing slash?
    – user3463
    Aug 16, 2012 at 17:46
  • Yes, that's correct.
    – Daniel
    Aug 16, 2012 at 17:53

1 Answer 1

0

Have a look at /etc/bash_completion. I imagine your problem is in the _cd() function. Can't really help on the specifics unless you post yours.

In my case (LMDE), completion works as you describe. You can have a look at my default /etc/bash_completion here. Try comparing it to yours, or just replacing yours with this one.

2
  • Thanks, but what if it is not cd command, if the problem happens to other commands like "display", where should I modify?
    – Daniel
    Aug 16, 2012 at 18:29
  • Don't really know, you'll have to check the file. Try making a backup of your /etc/bash_completion and then replacing it with mine. Then open a new bash (either a new terminal, or run source /etc/bash_completion or just run bash) and see if that solves your problem.
    – terdon
    Aug 16, 2012 at 19:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .