Bug 147023

Summary: Scripts in /etc/bash_completion.d/ not loaded at login
Product: [openSUSE] SUSE Linux 10.1 Reporter: Christian Boltz <suse-beta>
Component: BasesystemAssignee: Dr. Werner Fink <werner>
Status: VERIFIED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christian Boltz 2006-01-31 17:45:15 UTC
It seems /etc/bash_completion.d/yast2-completion.sh is not automatically loaded after login (using "su" or "su -" because I currently run beta2 chrooted from 10.0 ;-)

IIRC yast2 autocompletion also didn't work when I "really" booted 10.1 beta2, so this is not a chroot issue.

If I source the file manually, autocompletion works.

The same problem appears for the autocompletion sniplet ooo-wrapper.sh - it also needs to be manually sourced.

The problem still exists if I "su -" to a newly created testuser.
Comment 1 Dr. Werner Fink 2006-02-06 11:31:13 UTC
Please remove your ~/.bash.expert or /root/.bash.expert ...

g31:/ # echo 'echo xxx' > /etc/bash_completion.d/xxx.sh
g31:/ # su -
xxx
g31:~ # logout

btw: the login shell has to be /bin/bash and not /bin/sh
to be able to use the complete feature of the bash.
This because the ash and ksh do not know about.
Beside this /proc has to be mounted as well.
Comment 2 Christian Boltz 2006-02-06 17:38:18 UTC
Thanks for your expanation - I guess I missed to mount /proc in the chroot :-(

(Never heard about .bash.expert - and man bash doesn't know either. Are you sure your calender doesn't show April 1st accidently? ;-))

I just booted beta3 - yast2 autocompletion works.
Comment 3 Dr. Werner Fink 2006-02-06 17:46:28 UTC
If you touch ~/.bash.expert the most SuSE features in /etc/bash.bashrc will
be skipped (like completion).