bash tab completion with wildcard

Asked by asubedi

Suppose I have a file test.txt in the current working directory. $less test<tab> expands the filename, but $less test*<tab> doesn't. How do I get tab completion to work with wildcards? This used to work before, but after clean install of Feisty, it doesn't work.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Cesare Tirabassi
Solved:
Last query:
Last reply:
Revision history for this message
Best Cesare Tirabassi (norsetto) said :
#1

Perhaps a stupid question.
You are right about the fact that it should work with gobbling, but wouldn't you be able to achieve the same result with a doubletab (<tab><tab>)?
For instance, if in your directory you have the files test10, test11, test20 and you type:

cesare@desktop:/tmp$ less test<tab><tab>

You have as output:

cesare@desktop:/tmp$ less test
test10 test11 test20

Isn't what you want?

Revision history for this message
asubedi (asubedi) said :
#2

Not really. That wouldn't work if I wanted to do $less *st*<tab>. In any case, I commented out the bash completion part in .bashrc. And the default tab completion does work with wildcards.