https://bugzilla.novell.com/show_bug.cgi?id=764288
https://bugzilla.novell.com/show_bug.cgi?id=764288#c17
--- Comment #17 from Christian Boltz
So, now, my question would be: why why why do we need to manually source /etc/profile.d/bash_completion.sh? Shouldn't it be read from /etc/profile.d anyway?
(obviously tested with the fix from comment #13 reverted) That's the theory, and that's also what is done from a login shell - for example, in a shell opened with "su - cb" bash-completion is working. That's because /etc/profile sources /etc/profile.d/*.sh However, if I call "bash" inside this login shell, the completion is missing again. That's because /etc/profile is not used this time (it's not a login shell). /etc/bash.bashrc does not source /etc/profile.d/*.sh, it only sources specific files in /etc/profile.d/. (Completion is not inherited from the parent bash to the child bash - only (exported) environments variable are inherited.) HTH ;-) (In reply to comment #15)
Hmm, it works for me with the updated aaa_base with Vincent's fix.
Did you test in a login shell or a "normal" shell?
Christian, did you really re-login after updates? /etc/profile checks $PROFILEREAD not to re-read /etc/profile.d/* files.
Yes - there were even several fresh boots between the update and testing. But see above - /etc/profile is only read by login shells, not by "normal" shells like those you get in KDE's Konsole. (In reply to comment #16)
Make /usr/share/bash-completion/bash_completion readable for all users not only root.
Hmm, it _is_ readable for all users on my system, and that's how it's packaged according to rpm -qlv.
Beside this if/etc/profile.d/bash_completion.sh exists then the lines
for s in /etc/bash_completion.d/*.sh ; do test -r $s && . $s done
from /etc/bash.bashrc can be removed.
Sure? ;-) Did you test it? (We already have enough breakage here, no need to break more ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.