bash & bash-completion

Garance A Drosihn drosih at rpi.edu
Thu Apr 6 08:06:38 UTC 2006


At 3:35 AM +0800 4/6/06, Rong-En Fan wrote:
>Hi folks,
>
>I have bash-3.1.10_1 and bash-completion-20060301 installed on
>a 6-STABLE box. However, each time when I want to use <tab>
>to completion a name, some wired things will happen:
>
>$ ls ~/out<TAB>
>$ ls /home/rafan/output/<ENTER>
>$
>
>See, nothing happens. If I continue
>
>$ <UP-ARROW>
>$ ls /home/rafan/output/<ENTER>
>>
>
>PS2 shows up. If I hit ^C and did a <UP-ARROW> again
>
>$ ls /home/rafan/output/; ls /home/rafan/output/
>
>That's really wired. I have tried to remove all my .bash*,
>.profile, .shrc, .inputrc away and login, source bash_completion.
>The situation is the same.

Which version of bash?

There have been times when the bash port compiles itself
into a version-skew problem.  Some versions of bash use a
different version of readline than the base system uses.
In some cases, the code which is supposed to handle this
does not make the right decision, and it *compiles* with
one version of readline.h, but *links* to the library-form
of a different version.

Sorry I can't be more specific than that, but I haven't
looked into it for awhile now.  And I have not recompiled
bash recently, so if there's some new problem then I
wouldn't have run into it yet.  But I do compile the
"bash" port, which is bash 3.x.  If you're still using
the "bash2" port, then that *might* be the problem.

-- 
Garance Alistair Drosehn            =   gad at gilead.netel.rpi.edu
Senior Systems Programmer           or  gad at freebsd.org
Rensselaer Polytechnic Institute    or  drosih at rpi.edu


More information about the freebsd-ports mailing list