summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Ørsted Andresen <zlin@gentoo.org>2008-06-15 23:22:32 +0000
committerBo Ørsted Andresen <zlin@gentoo.org>2008-06-15 23:22:32 +0000
commit4844db2e220ec2c3026861d3f6229f17b72ed090 (patch)
treece844dfeac4c6c90ae566b1612b6b125b3707e3a /app-shells/bash-completion/files/bash-completion.sh
parentupdated older versions for bug #226427 to use eautoreconf (diff)
downloadgentoo-2-4844db2e220ec2c3026861d3f6229f17b72ed090.tar.gz
gentoo-2-4844db2e220ec2c3026861d3f6229f17b72ed090.tar.bz2
gentoo-2-4844db2e220ec2c3026861d3f6229f17b72ed090.zip
Get rid of 'bash: BASH_COMPLETION: readonly variable' message.
(Portage version: 2.1.5.5)
Diffstat (limited to 'app-shells/bash-completion/files/bash-completion.sh')
-rw-r--r--app-shells/bash-completion/files/bash-completion.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/app-shells/bash-completion/files/bash-completion.sh b/app-shells/bash-completion/files/bash-completion.sh
index fb99daee0b98..aca4fac00e95 100644
--- a/app-shells/bash-completion/files/bash-completion.sh
+++ b/app-shells/bash-completion/files/bash-completion.sh
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/files/bash-completion.sh,v 1.2 2006/11/22 14:54:21 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/files/bash-completion.sh,v 1.3 2008/06/15 23:22:32 zlin Exp $
#
# START bash completion -- do not remove this line
@@ -20,7 +20,9 @@ then
# Some modules, including base, depend on the definitions
# in .pre. See the ebuild for how this is created.
if ! $loaded_pre; then
- BASH_COMPLETION=/usr/share/bash-completion/base
+ if [[ ${BASH_COMPLETION-unset} == unset ]]; then
+ BASH_COMPLETION=/usr/share/bash-completion/base
+ fi
source /usr/share/bash-completion/.pre
loaded_pre=true
fi