LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-17-2006, 12:28 PM   #1
magic_ghost
LQ Newbie
 
Registered: Jan 2006
Location: Oxford, England
Distribution: Mandrake 2006
Posts: 14

Rep: Reputation: 0
Tab autocomplete


Hello,

When I type "open" into the console, it autocpmpletes to openoffice. This is all well and good but when asked to execute the command it complains that it can't find the file.

What I was wondering is how does the autocomplete feature work? Is there a text file somewhere that contains all the autocpmplete possibilities or is it dynamically updated based on whats in the PATH environment variable?

Last edited by magic_ghost; 03-17-2006 at 12:29 PM.
 
Old 03-17-2006, 01:04 PM   #2
geeman2.0
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

Rep: Reputation: 30
Tab auto-complete searches the directories in your $PATH variable.
Sometimes when you auto-complete it's not possible to uniquely identify which file you want, so it completes as much as it can. In your case there are probably two or more files which begin with "openoffice".
If you press tab again, it will display the names of all files in your path which begin with openoffice, e.g. openoffice-bin, openoffice2.0, etc...

Note that on my system open office is launched by typing ooffice
 
  


Reply


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
FC 4. Modify ALT+TAB behaviour to CTRL+TAB xtracto Linux - Software 1 09-22-2005 03:06 PM
Tab autocomplete like windows shell? lerceon Linux - Newbie 2 04-17-2005 10:25 PM
Redirecting output of tab tab benjaminrtz Linux - General 1 04-28-2003 11:11 AM
autocomplete figadiablo Linux - General 6 03-13-2002 05:19 PM
autocomplete marksstroud Linux - Newbie 1 11-11-2001 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:42 PM.

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