https://bugzilla.novell.com/show_bug.cgi?id=811030
https://bugzilla.novell.com/show_bug.cgi?id=811030#c3
--- Comment #3 from Tristan Miller 2013-04-08 09:29:39 BST ---
(In reply to comment #2)
It's difficult to properly construct an if-else chain without knowing what all
those other completion scripts are.
We know that /etc/profile.d/bash_completion.sh calls
/usr/share/bash-completion/bash_completion which in turn calls
~/.bash_completion, so we must first test for the presence of
/etc/profile.d/bash_completion.sh, and execute ~/.bash_completion only if it's
not found.
However, as I mentioned, it's not clear to me what /etc/bash_completion and
/etc/profile.d/complete.bash are for. These files don't appear to be installed
as part of the bash-completion RPM. Perhaps previous versions of openSUSE used
them. If so, we need to know whether or not they called ~/.bash_completion.
If they did, then my patch works as-is. If they didn't, then my patch needs to
be changed.
If these files were never used by previous versions of openSUSE, and there's no
other reason to keep them, then references to them should be removed from
/etc/bash.bashrc. We could simplify it to a single if:
if test -e /etc/bash_completion ; then
. /etc/bash_completion
fi
--
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.