LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 10-25-2002, 10:00 AM   #1
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
bash auto-complete behaviour changes


since upgrade a bunch of my system to mandrake 9.0, when i use autocomplete [TAB] in Bash, i only get one screenfull at a time, leaving with an annoying "--More--" prompt at the bottom of the screen. and then i have to press "q" to get out of that mode, that's sucky and really annoying. anyone know where this behaviour comes from and how to remove it? (and who thought it was a good idea...?). none of my bashrc's have changed at all, and i can't see any new option n the bash manpage... maybe mandrakes squirrelling away some options somewhere in a corner.
 
Old 10-25-2002, 12:17 PM   #2
leed_25
Member
 
Registered: Jul 2002
Location: san francisco
Distribution: freebsd
Posts: 102

Rep: Reputation: 17
Ok, so here's a possibility. there is a bash shell builtin 'complete ' which takes an argument -C

Code:
          -C command
              command  is executed in a subshell environ-
              ment, and its output is used as the  possi-
              ble completions.
you might want to look in your /etc/profile to see if there's anything funky going on there,
 
Old 10-25-2002, 01:59 PM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
Hey acid, see if you got /etc/bash_completion , as far as I can tell it is the new thing from http://www.caliban.org/bash/index.shtml#completion
 
Old 10-25-2002, 05:37 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Original Poster
Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
i didn't know about that programmable completion for host anmes etc... always thought that should exist... but neither suggestion has lead to anything. i *think* it's probably compiled in to the bash binary, though i've no way of finding out. "strings /bin/bash" tells me that the --More-- is internal to bash but there must be someway to make it act like the older versions.

has anyone else foudn this chaneg in behaviour with mandrake 9.0 (bash 2.05b)
 
Old 10-25-2002, 07:00 PM   #5
leed_25
Member
 
Registered: Jul 2002
Location: san francisco
Distribution: freebsd
Posts: 102

Rep: Reputation: 17
So I installed ''GNU bash, version 2.05b.0(1)-release (i386-portbld-freebsd4.6)'' and looked at the man page here's what I saw under ''Readline variables''

Code:
 

       Readline  has  variables  that can be used to further cus-
       tomize its behavior.  A variable may be set in the inputrc
       file with a statement of the form

          set variable-name value

                             [ . . .]

      page-completions (On)
          If set to On, readline uses an  internal  more-like
          pager   to   display   a   screenful   of  possible
          completions at a time.

Last edited by leed_25; 10-25-2002 at 07:06 PM.
 
Old 10-26-2002, 01:32 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,344

Original Poster
Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
ahh cool, that hit it! mind you it always annoys me when people say that to one of my answers as i'm normally thinking "well what did you expect it to do?"... anyway.... it's not in the manpage i've got here, would've been nice if they'd documented it properly huh? cheers.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kmail and auto complete of email address in the TO field shazam75 Linux - Software 3 08-14-2013 12:17 PM
annoying OOo Writer auto-complete mapesju Linux - Software 1 11-18-2004 08:20 PM
auto-completion - how does it work & can my script args auto-complete? BrianK Programming 1 06-11-2004 04:51 PM
case-insensitive auto-complete gSalsero Programming 3 06-08-2004 07:33 AM
Different bash behaviour in FreeBSD? J_Szucs *BSD 9 05-17-2002 07:41 AM


All times are GMT -5. The time now is 07:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration