LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 05-16-2016, 01:05 PM   #1
nclear
LQ Newbie
 
Registered: May 2016
Posts: 2

Rep: Reputation: Disabled
wildcard tab complete not working as expected in centos 7


Hi,
I am trying to use an * to tab complete a system path. This used to work in CentOS 6 but it is not working CentOS 7.

What I want it to do is is this: when I type this

Code:
ls -al /etc/sysconfig/*n
and then hit <tab><tab> it will autocomplete to this

Code:
ls -al /etc/sysconfig/rhn/
Then I can continue typing the path. Right now when I hit <tab><tab> nothing happens...

This currently works: If I were to just hit enter at

Code:
[root@dhcp_test ~]# ls -al /etc/sysconfig/*n
total 48
drwxr-xr-x. 5 root root 4096 May 10 06:22 .
drwxr-xr-x. 7 root root 4096 May 10 09:15 ..
drwxr-xr-x. 4 root root   37 May 10 05:58 allowed-actions
drwxr-xr-x. 2 root root  104 May 10 06:10 clientCaps.d
-rw-r--r--. 1 root root  124 May 10 06:20 image.cfg
-rw-------. 1 root root  129 May 10 10:41 osad-auth.conf
-rw-rw-r--. 1 root root 1825 May 10 06:22 osad.conf
-rw-r--r--. 1 root root 1458 May 10 06:20 rhncfg-client.conf
-rw-r--r--. 1 root root 1316 May 10 06:20 rhncfg-manager.conf
-rw-r--r--. 1 root root   13 May 10 06:20 rhnsd
-rw-r--r--. 1 root root 1143 May 10 06:20 studio-kvm-template.xml
-rw-r--r--. 1 root root  936 May 10 06:20 studio-xen-template.xml
-rw-------. 1 root root 1321 May 10 06:20 systemid
-rw-r--r--. 1 root root 1984 May 10 06:20 up2date
drwxr-xr-x. 3 root root   17 May 10 06:09 virt
it is able to figure out what I want and do ls -al of the rhn directory, but I dont want to have to hit enter, I want to be able to tab-complete the path so I can keep going down the path.

I have bash completion installed. I have been trying to compare my shopt and complete options between CentOS 6 and CentOS 7 - and so far I have been unsuccessful. They are the same or the changes that I have done have no effect.

Does anyone have any suggestions?
 
Old 05-16-2016, 03:11 PM   #2
nclear
LQ Newbie
 
Registered: May 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
well... I removed the bash-completion rpm. and now it works... everything works... even tab complete of commands, which is what I thought that rpm did.

I'm at a loss, but at least it is working now.

EDIT:
I figured out what the bash-completion rpm does it enables you to tab complete out a whole command like
Code:
systemctl is-enabled firewalld.service
so now that is broken... ugh, I guess I need to decide which thing I need more.

Last edited by nclear; 05-16-2016 at 03:26 PM. Reason: new information
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using sudo with tab complete fetal Linux - General 4 12-11-2015 12:14 PM
How to enable wildcard expansion for TAB in bash? PeterSteele CentOS 4 08-22-2015 12:27 PM
Tab does not auto-complete in terminal General Fedora 8 09-12-2013 01:48 AM
Bash script using tab complete sadarax Programming 6 01-30-2007 08:21 PM
tab complete Frustin AIX 4 07-19-2004 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

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