LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


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

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

Rep: Reputation: 73
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
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,786

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
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
 
  


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:24 AM.

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