[Bash-completion-devel] ls completion different from cd completion

Ethy H. Brito ethy.brito at inexo.com.br
Wed Jun 27 03:21:21 UTC 2012


Hi All

I recently upgraded from Ubuntu 10.04LTS to 12.04LTS and notice that bash
completion is a little different.

Back in 10.04 if I type:

"ls /us[TAB] I get "ls /usr/"

now in 12.04 if I type the same

"ls /us[TAB]" I get "ls /usr " (notice the blank at the end, instead of slash)

but "cd /us[TAB]" gives "cd /usr/" in both versions.

The old behavior let me type something like
"ls /fi[TAB]se[TAB]th[TAB]so[TAB]" and get "/first/second/third/somefile". 

Now I have to type 
"ls /fi[TAB][BACKSPACE]/se[TAB][BACKSPACE]/th[TAB][BACKSPACE]/so[TAB]".
Annoying, isn't it?

This is the same (like ls) behavior for mv, cp, mkdir, etc.

How do I get the old behavior (10.04) back?
Any other info I can send you to help me with this?

Regards

Ethy



More information about the Bash-completion-devel mailing list