[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-59-gd2707cf

Ville Skyttä ville.skytta at iki.fi
Tue Apr 5 19:54:14 UTC 2011


The following commit has been merged in the master branch:
commit d2707cf3683d934d539dcd163b76c8cec46b3191
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Apr 5 22:44:04 2011 +0300

    Try /usr/sbin before /sbin in have().
    
    The former tends to have more executables so this should save some
    stat() calls in some setups.

diff --git a/bash_completion b/bash_completion
index 3db6dda..8e31d61 100644
--- a/bash_completion
+++ b/bash_completion
@@ -171,7 +171,7 @@ have()
     unset -v have
     # Completions for system administrator commands are installed as well in
     # case completion is attempted via `sudo command ...'.
-    PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin type $1 &>/dev/null &&
+    PATH=$PATH:/usr/sbin:/sbin:/usr/local/sbin type $1 &>/dev/null &&
     have="yes"
 }
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list