Bug 147023 - Scripts in /etc/bash_completion.d/ not loaded at login
Summary: Scripts in /etc/bash_completion.d/ not loaded at login
Status: VERIFIED WORKSFORME
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Beta 2
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Dr. Werner Fink
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-31 17:45 UTC by Christian Boltz
Modified: 2006-02-06 17:46 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).