LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   bash auto-complete behaviour changes (https://www.linuxquestions.org/questions/linux-software-2/bash-auto-complete-behaviour-changes-33722/)

acid_kewpie 10-25-2002 10:00 AM

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.

leed_25 10-25-2002 12:17 PM

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,

neo77777 10-25-2002 01:59 PM

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

acid_kewpie 10-25-2002 05:37 PM

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)

leed_25 10-25-2002 07:00 PM

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.


acid_kewpie 10-26-2002 01:32 PM

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.


All times are GMT -5. The time now is 11:52 AM.