LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Tab-completion (http://www.linuxquestions.org/questions/programming-9/tab-completion-607233/)

kzr_merchant 12-16-2007 10:59 PM

Tab-completion
 
Hello all,
Is it possible to implement tab-completion feature through bash scripting? If yes then pls let me know how it can be achieve.

Thanks in advance.

shadowsnipes 12-16-2007 11:47 PM

I don't think it can, but you shouldn't need it since you can use wildcard expansions '*'
man bash for more details.

ntubski 12-17-2007 05:00 PM

Your question is a bit vague, but
Quote:

Originally Posted by help read
...
If -e is supplied and the shell is interactive, readline is used to obtain the line.
...

The readline library is what gives completion in bash.

Also see programmable completion: http://www.faqs.org/docs/bashman/bashref_103.html


All times are GMT -5. The time now is 10:38 AM.