Bugzilla – Bug 147023
Scripts in /etc/bash_completion.d/ not loaded at login
Last modified: 2006-02-06 17:46:28 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.
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.
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.
If you touch ~/.bash.expert the most SuSE features in /etc/bash.bashrc will be skipped (like completion).