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
commitc2edd1fc44405349de07770410e22d86a499091e (patch)
tree060dcc9ecbea2245a84df4870e3b3528ff07a9da /app-shells/bash-completion/files
parentupdated older versions for bug #226427 to use eautoreconf (diff)
downloadhistorical-c2edd1fc44405349de07770410e22d86a499091e.tar.gz
historical-c2edd1fc44405349de07770410e22d86a499091e.tar.bz2
historical-c2edd1fc44405349de07770410e22d86a499091e.zip
Get rid of 'bash: BASH_COMPLETION: readonly variable' message.
Package-Manager: portage-2.1.5.5
Diffstat (limited to 'app-shells/bash-completion/files')
-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