bdf5539ecd
Fix bash < 4 _filedir_xspec uppercase expansion issue (#726220). Drop _filedir_xspec self-parsing with bash >= 4 for speedups (#479936). Do install triggers with lua where available to speed up package install. Add completion for sum (#717341).
30 lines
1.4 KiB
Diff
30 lines
1.4 KiB
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-08-15 12:52:42.040790631 +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"
|
|
}
|
|
|
|
diff -up bash-completion-1.3/completions/ant.orig bash-completion-1.3/completions/ant
|
|
--- bash-completion-1.3/completions/ant.orig 2011-01-21 11:36:11.000000000 +0200
|
|
+++ bash-completion-1.3/completions/ant 2011-08-15 12:54:52.717060687 +0300
|
|
@@ -57,7 +57,8 @@ _ant()
|
|
-- "$cur" ) )
|
|
fi
|
|
}
|
|
-have complete-ant-cmd.pl && \
|
|
+# https://bugzilla.redhat.com/729771
|
|
+PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin type complete-ant-cmd.pl &>/dev/null && \
|
|
complete -C complete-ant-cmd.pl -F _ant ant || complete -F _ant ant
|
|
}
|
|
|