[Bash-completion-commits] ./current r1293: Change sourcing order

David Paleino d.paleino at gmail.com
Thu Jan 29 14:10:18 UTC 2009


------------------------------------------------------------
revno: 1293
committer: David Paleino <d.paleino at gmail.com>
branch nick: current
timestamp: Thu 2009-01-29 15:10:18 +0100
message:
  Change sourcing order
modified:
  bash_completion
-------------- next part --------------
=== modified file 'bash_completion'
--- a/bash_completion	2009-01-29 14:07:17 +0000
+++ b/bash_completion	2009-01-29 14:10:18 +0000
@@ -9289,6 +9289,13 @@
 unset list
 
 # source completion directory definitions
+if [ -d $BASH_COMPLETION_COMPAT_DIR -a -r $BASH_COMPLETION_COMPAT_DIR -a \
+	 -x $BASH_COMPLETION_COMPAT_DIR ]; then
+	for i in $BASH_COMPLETION_COMPAT_DIR/*; do
+		[[ ${i##*/} != @(*~|*.bak|*.swp|\#*\#|*.dpkg*|*.rpm@(orig|new|save)) ]] &&
+			[ \( -f $i -o -h $i \) -a -r $i ] && . $i		
+	done
+fi
 if [ -d $BASH_COMPLETION_DIR -a -r $BASH_COMPLETION_DIR -a \
      -x $BASH_COMPLETION_DIR ]; then
 	for i in $BASH_COMPLETION_DIR/*; do
@@ -9296,13 +9303,6 @@
 			[ \( -f $i -o -h $i \) -a -r $i ] && . $i
 	done
 fi
-if [ -d $BASH_COMPLETION_COMPAT_DIR -a -r $BASH_COMPLETION_COMPAT_DIR -a \
-	 -x $BASH_COMPLETION_COMPAT_DIR ]; then
-	for i in $BASH_COMPLETION_COMPAT_DIR/*; do
-		[[ ${i##*/} != @(*~|*.bak|*.swp|\#*\#|*.dpkg*|*.rpm@(orig|new|save)) ]] &&
-			[ \( -f $i -o -h $i \) -a -r $i ] && . $i		
-	done
-fi
 unset i
 
 # source user completion file



More information about the Bash-completion-commits mailing list