Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-16-2007, 09:59 PM   #1
LQ Newbie
Registered: Dec 2006
Posts: 10

Rep: Reputation: 0

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.
Old 12-16-2007, 10:47 PM   #2
Senior Member
Registered: Sep 2005
Distribution: Slackware
Posts: 1,442

Rep: Reputation: 71
I don't think it can, but you shouldn't need it since you can use wildcard expansions '*'
man bash for more details.
Old 12-17-2007, 04:00 PM   #3
Senior Member
Registered: Nov 2005
Distribution: Arch
Posts: 2,991

Rep: Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192Reputation: 1192
Your question is a bit vague, but
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:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
TAB Auto Completion rsmccain Linux - Software 6 11-20-2007 09:47 PM
Tab completion for sudo Zmyrgel Slackware 1 06-02-2007 09:17 AM
Tab completion with sudo extrasolar Slackware 8 08-22-2006 02:46 PM
tab completion with scp fsbooks Linux - General 5 04-07-2005 03:13 PM
apt-get tab completion atheist Debian 6 06-11-2004 08:25 PM

All times are GMT -5. The time now is 04:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration