LinuxQuestions.org
Help answer threads with 0 replies.
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-14-2015, 01:30 AM   #1
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora, Centos, Manjaro
Posts: 317

Rep: Reputation: 70
bash completion F21


Has TAB completion in bash changed?

Normally I would use the TAB key to complete a command as in changing a directory (cd).

If I pressed the TAB key I would get the command competed until a duplicate line was hit and then if I hit TAB again I would get a listing of matching alternatives. This would go on until I chose the alternative I wanted.

Now all I get is the first completion and no more do I get any alternatives, and even if I add the next letter of the command line in the correct sequence pressing TAB again does not do any further completions nor give me any alternatives.

Now I have read the bash man page and found several parameters which have something to do with bash completion but I've never had to use these before. (perhaps they were correctly set as defaults by the original OS install).

For example :-

I have two directories :-

~/temp/a truly long name
~/temp/a truly longer name

When I execute :- cd temp/
and press the TAB key I would expect the cd command to look like this

cd ~/temp/a\ truly\ long

I would then press the TAB key again and would expect nothing to happen until I pressed the TAB key again.

I would then expect this to happen :-

cd ~/temp/a\ truly\ long
~/temp/a\ truly\ long\ name ~/temp/a\ truly\ longer\ name (or similar)

and I could make a choice usually by adding the letter "e" on the command line and pressing the TAB key again.

Anybody have any ideas?
 
Old 03-14-2015, 04:17 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
The example you wrote works for me, so probably something was misconfigured in your environment.

http://www.debian-administration.org...pletion_part_1
http://www.caliban.org/bash/index.shtml

Obviously these are old, but you can find a way to start.
 
Old 03-14-2015, 07:35 AM   #3
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Fedora, Centos, Manjaro
Posts: 317

Original Poster
Rep: Reputation: 70
Would you mind showing me a copy of the following command please ?

set | grep ^BASH

mine is :-
set|grep ^BASH
BASH=/usr/bin/bash
BASHOPTS=checkwinsize:cmdhist:complete_fullquote:expand_aliases:extglob:extquote:force_fignore:hista ppend:interactive_commentsrogcompromptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_COMPLETION_COMPAT_DIR=/etc/bash_completion.d
BASH_LINENO=()
BASH_REMATCH=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="4" [1]="3" [2]="33" [3]="1" [4]="release" [5]="x86_64-redhat-linux-gnu")
BASH_VERSION='4.3.33(1)-release'

Last edited by ArfaSmif; 03-14-2015 at 07:36 AM. Reason: stick out tongues as displayed should be ":" only
 
Old 03-14-2015, 07:48 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
mine is exactly the same
 
1 members found this post helpful.
  


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
Request for Testing: bash-completion 2.0 rworkman Slackware 15 01-31-2013 04:19 AM
bash completion platypuus Programming 8 05-18-2010 11:17 PM
Handling wordbreaks in bash completion azrael_ru Linux - General 2 02-18-2010 08:06 AM
xterm and bash completion athanatos Slackware 12 07-22-2006 12:47 PM
question about bash completion Guest1234 Linux - Software 4 02-25-2006 04:09 PM

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

All times are GMT -5. The time now is 03:59 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