bash-completion/bash-completion-1.3-yeswehave.patch
Ville Skyttä 7d79fb7845 Patch to not test command availability for each snippet, improves load time.
Apply upstream libreoffice flat XML extensions fix for #692548.
Apply upstream MANPAGER fix for #689180.
Apply upstream (la)tex *.dbj fix for #678122.
2011-04-15 23:50:16 +03:00

17 lines
858 B
Diff

diff -up bash-completion-1.3/bash_completion.orig bash-completion-1.3/bash_completion
--- bash-completion-1.3/bash_completion.orig 2011-02-06 21:16:00.000000000 +0200
+++ bash-completion-1.3/bash_completion 2011-04-12 21:34:55.527355045 +0300
@@ -171,7 +171,11 @@ 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 &&
+ # In this packaged setup we don't need to do the availability test below
+ # because only completions for commands that are actually available should
+ # be in /etc/bash_completion.d anyway; not doing the test improves our load
+ # time significantly.
+ #PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin type $1 &>/dev/null &&
have="yes"
}