Blame bash-completion-1.3-yeswehave.patch
|
Ville Skyttä |
7d79fb |
diff -up bash-completion-1.3/bash_completion.orig bash-completion-1.3/bash_completion
|
|
Ville Skyttä |
7d79fb |
--- bash-completion-1.3/bash_completion.orig 2011-02-06 21:16:00.000000000 +0200
|
|
Ville Skyttä |
7d79fb |
+++ bash-completion-1.3/bash_completion 2011-04-12 21:34:55.527355045 +0300
|
|
Ville Skyttä |
7d79fb |
@@ -171,7 +171,11 @@ have()
|
|
Ville Skyttä |
7d79fb |
unset -v have
|
|
Ville Skyttä |
7d79fb |
# Completions for system administrator commands are installed as well in
|
|
Ville Skyttä |
7d79fb |
# case completion is attempted via `sudo command ...'.
|
|
Ville Skyttä |
7d79fb |
- PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin type $1 &>/dev/null &&
|
|
Ville Skyttä |
7d79fb |
+ # In this packaged setup we don't need to do the availability test below
|
|
Ville Skyttä |
7d79fb |
+ # because only completions for commands that are actually available should
|
|
Ville Skyttä |
7d79fb |
+ # be in /etc/bash_completion.d anyway; not doing the test improves our load
|
|
Ville Skyttä |
7d79fb |
+ # time significantly.
|
|
Ville Skyttä |
7d79fb |
+ #PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin type $1 &>/dev/null &&
|
|
Ville Skyttä |
7d79fb |
have="yes"
|
|
Ville Skyttä |
7d79fb |
}
|
|
Ville Skyttä |
7d79fb |
|