summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-07-28 23:28:44 +0000
committerMike Frysinger <vapier@gentoo.org>2004-07-28 23:28:44 +0000
commit9b61041c6469eaa6884baa3e3aa5220988f43485 (patch)
tree18e020f8ab2fc9aa5174a2a97f6a0dd1283544ee /app-shells/bash-completion/files
parenttouchups (Manifest recommit) (diff)
downloadgentoo-2-9b61041c6469eaa6884baa3e3aa5220988f43485.tar.gz
gentoo-2-9b61041c6469eaa6884baa3e3aa5220988f43485.tar.bz2
gentoo-2-9b61041c6469eaa6884baa3e3aa5220988f43485.zip
we work with bash3 too #58708
Diffstat (limited to 'app-shells/bash-completion/files')
-rw-r--r--app-shells/bash-completion/files/bash-completion19
-rw-r--r--app-shells/bash-completion/files/digest-bash-completion-20040704-r12
2 files changed, 16 insertions, 5 deletions
diff --git a/app-shells/bash-completion/files/bash-completion b/app-shells/bash-completion/files/bash-completion
index 27a250ca0728..048d91e1eb41 100644
--- a/app-shells/bash-completion/files/bash-completion
+++ b/app-shells/bash-completion/files/bash-completion
@@ -1,13 +1,22 @@
# 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,v 1.3 2004/07/14 21:37:29 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-shells/bash-completion/files/bash-completion,v 1.4 2004/07/28 23:28:44 vapier Exp $
#
# START bash completion -- do not remove this line
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
-if [ "$PS1" ] && [ $bmajor -eq 2 ] && [ $bminor '>' 04 ] \
- && [ -f /etc/bash_completion ]; then # interactive shell
- # Source completion code
- . /etc/bash_completion
+dosource=0
+# interactive shell
+if [ "$PS1" ] && [ -f /etc/bash_completion ] ; then
+ if [ $bmajor -eq 2 ] && [ $bminor '>' 04 ] ; then
+ dosource=1
+ fi
+ if [ $bmajor -ge 3 ] ; then
+ dosource=1
+ fi
+fi
+if [ ${dosource} -eq 1 ] ; then
+ # Source completion code
+ . /etc/bash_completion
fi
unset bash bmajor bminor
# END bash completion -- do not remove this line
diff --git a/app-shells/bash-completion/files/digest-bash-completion-20040704-r1 b/app-shells/bash-completion/files/digest-bash-completion-20040704-r1
new file mode 100644
index 000000000000..71d744fd8807
--- /dev/null
+++ b/app-shells/bash-completion/files/digest-bash-completion-20040704-r1
@@ -0,0 +1,2 @@
+MD5 1a0991f4ff892ed6fed1c6cf39ee7022 bash-completion-20040704.tar.bz2 82544
+MD5 8776015ce9bbf116e34a149ef0846c85 gentoo-bashcomp-1.0_beta.tar.gz 13346