[arch-commits] CVS update of extra/system/bash-completion (bash_completion.sh)

Dan McGee dan at archlinux.org
Sat Feb 16 21:14:54 UTC 2008


    Date: Saturday, February 16, 2008 @ 16:14:54
  Author: dan
    Path: /home/cvs-extra/extra/system/bash-completion

Modified: bash_completion.sh (1.6 -> 1.7)

remove unnecessary bash version checking


--------------------+
 bash_completion.sh |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


Index: extra/system/bash-completion/bash_completion.sh
diff -u extra/system/bash-completion/bash_completion.sh:1.6 extra/system/bash-completion/bash_completion.sh:1.7
--- extra/system/bash-completion/bash_completion.sh:1.6	Sun Mar 26 12:18:34 2006
+++ extra/system/bash-completion/bash_completion.sh	Sat Feb 16 16:14:54 2008
@@ -4,11 +4,9 @@
 #
 # check if we use bash
 if [ $SHELL = "/bin/bash" ]; then
-	bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
-	if [ -n "$PS1" ] && [ \( $bmajor -eq 2 -a $bminor '>' 04 \) -o $bmajor -ge 3 ] \
+	if [ -n "$PS1" ] \
 	  && [ -f /etc/bash_completion ]; then # interactive shell
 	  # Source completion code
 	  . /etc/bash_completion
 	fi
-	unset bash bmajor bminor
 fi




More information about the arch-commits mailing list